Home | History | Annotate | Download | only in src

Lines Matching refs:COMPILE_ASSERT

21 // The COMPILE_ASSERT macro can be used to verify that a compile-time
25 // COMPILE_ASSERT(ARRAYSIZE(content_type_names) == CONTENT_NUM_TYPES,
30 // COMPILE_ASSERT(sizeof(foo) < 128, foo_too_large);
32 // For the second argument to COMPILE_ASSERT, the programmer should supply
39 // is what differentiates COMPILE_ASSERT from Boost static asserts.
45 #define COMPILE_ASSERT(expr, msg) \
49 // Implementation details of COMPILE_ASSERT:
51 // - COMPILE_ASSERT works by defining an array type that has -1
56 // #define COMPILE_ASSERT(expr, msg) typedef char msg[(expr) ? 1 : -1]
64 // COMPILE_ASSERT(foo, msg); // not supposed to compile as foo is