Lines Matching refs:COMPILE_ASSERT
11 // COMPILE_ASSERT macro, borrowed from google3/base/macros.h.
15 // The COMPILE_ASSERT macro can be used to verify that a compile time
19 // COMPILE_ASSERT(ARRAYSIZE(content_type_names) == CONTENT_NUM_TYPES,
24 // COMPILE_ASSERT(sizeof(foo) < 128, foo_too_large);
32 #if !defined(COMPILE_ASSERT)
37 #define COMPILE_ASSERT(expr, msg) \
39 #endif // COMPILE_ASSERT
41 // Implementation details of COMPILE_ASSERT:
43 // - COMPILE_ASSERT works by defining an array type that has -1
48 // #define COMPILE_ASSERT(expr, msg) typedef char msg[(expr) ? 1 : -1]
56 // COMPILE_ASSERT(foo, msg); // not supposed to compile as foo is
70 // COMPILE_ASSERT(5 > 0, some_message);