Lines Matching defs:COMPILE_ASSERT
188 // The COMPILE_ASSERT macro can be used to verify that a compile time
192 // COMPILE_ASSERT(ARRAYSIZE_UNSAFE(content_type_names) == CONTENT_NUM_TYPES,
197 // COMPILE_ASSERT(sizeof(foo) < 128, foo_too_large);
207 #undef COMPILE_ASSERT
208 #define COMPILE_ASSERT(expr, msg) \
211 // Implementation details of COMPILE_ASSERT:
213 // - COMPILE_ASSERT works by defining an array type that has -1
218 // #define COMPILE_ASSERT(expr, msg) typedef char msg[(expr) ? 1 : -1]
226 // COMPILE_ASSERT(foo, msg); // not supposed to compile as foo is
240 // COMPILE_ASSERT(5 > 0, some_message);