Lines Matching defs:COMPILE_ASSERT
107 // The COMPILE_ASSERT macro can be used to verify that a compile time
111 // COMPILE_ASSERT(ARRAYSIZE_UNSAFE(content_type_names) == CONTENT_NUM_TYPES,
116 // COMPILE_ASSERT(sizeof(foo) < 128, foo_too_large);
124 #define COMPILE_ASSERT(expr, msg) static_assert(expr, #msg)
131 #define COMPILE_ASSERT(expr, msg) \
135 // Implementation details of COMPILE_ASSERT:
137 // - COMPILE_ASSERT works by defining an array type that has -1
142 // #define COMPILE_ASSERT(expr, msg) typedef char msg[(expr) ? 1 : -1]
150 // COMPILE_ASSERT(foo, msg); // not supposed to compile as foo is
164 // COMPILE_ASSERT(5 > 0, some_message);
234 COMPILE_ASSERT(sizeof(Dest) == sizeof(Source), VerifySizesAreEqual);