Lines Matching refs:SIZE
51 a given number of bytes wide. The size of the array is designed to be 1
52 (which should always be valid) if the enum's size is SIZE, and otherwise the
53 size of the array will be -1 (which all/most compilers should flag as an
63 SIZE is the expected size in bytes.
65 #define PP_COMPILE_ASSERT_SIZE_IN_BYTES_IMPL(NAME, CTYPENAME, SIZE) \
68 ## NAME ## _is_not_ ## SIZE ## \
69 _bytes_wide[(sizeof(CTYPENAME) == SIZE) ? 1 : -1]; }
77 #define PP_COMPILE_ASSERT_SIZE_IN_BYTES(NAME, SIZE) \
78 PP_COMPILE_ASSERT_SIZE_IN_BYTES_IMPL(NAME, NAME, SIZE)
86 #define PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(NAME, SIZE) \
87 PP_COMPILE_ASSERT_SIZE_IN_BYTES_IMPL(NAME, struct NAME, SIZE)
95 #define PP_COMPILE_ASSERT_ENUM_SIZE_IN_BYTES(NAME, SIZE) \
96 PP_COMPILE_ASSERT_SIZE_IN_BYTES_IMPL(NAME, enum NAME, SIZE)