1 use crate::std::any::TypeId; 2 use dlibc; 3 macro_rules! ok { 4 ($($t:ident)*) => {$( 5 assert!(TypeId::of::<dlibc::$t>() == TypeId::of::<raw::$t>(), 6 "{} is wrong", stringify!($t)); 7 )*} 8 } 9 10 #[test] same()11fn same() { 12 use crate::std::os::raw; 13 ok!(c_char c_schar c_uchar c_short c_ushort c_int c_uint c_long c_ulong 14 c_longlong c_ulonglong c_float c_double); 15 } 16