equal
deleted
inserted
replaced
277 #define assert_compile(expr) |
277 #define assert_compile(expr) |
278 #else |
278 #else |
279 #define assert_compile(expr) extern "C" void __ct_assert__(int a[1 - 2 * !(expr)]) |
279 #define assert_compile(expr) extern "C" void __ct_assert__(int a[1 - 2 * !(expr)]) |
280 #endif /* __OS2__ */ |
280 #endif /* __OS2__ */ |
281 |
281 |
|
282 /* Check if the types have the bitsizes like we are using them */ |
|
283 assert_compile(sizeof(uint64) == 8); |
282 assert_compile(sizeof(uint32) == 4); |
284 assert_compile(sizeof(uint32) == 4); |
283 assert_compile(sizeof(uint16) == 2); |
285 assert_compile(sizeof(uint16) == 2); |
284 assert_compile(sizeof(uint8) == 1); |
286 assert_compile(sizeof(uint8) == 1); |
285 |
287 |
286 #define lengthof(x) (sizeof(x)/sizeof(x[0])) |
288 #define lengthof(x) (sizeof(x)/sizeof(x[0])) |