Lines Matching defs:COMPILE_ASSERT
196 // The COMPILE_ASSERT macro can be used to verify that a compile time
200 // COMPILE_ASSERT(ARRAYSIZE_UNSAFE(content_type_names) == CONTENT_NUM_TYPES,
205 // COMPILE_ASSERT(sizeof(foo) < 128, foo_too_large);
215 #undef COMPILE_ASSERT
216 #define COMPILE_ASSERT(expr, msg) \
219 // Implementation details of COMPILE_ASSERT:
221 // - COMPILE_ASSERT works by defining an array type that has -1
226 // #define COMPILE_ASSERT(expr, msg) typedef char msg[(expr) ? 1 : -1]
234 // COMPILE_ASSERT(foo, msg); // not supposed to compile as foo is
248 // COMPILE_ASSERT(5 > 0, some_message);