Lines Matching defs:VCD_COMPILE_ASSERT
23 // The VCD_COMPILE_ASSERT macro can be used to verify that a compile-time
27 // VCD_COMPILE_ASSERT(ARRAYSIZE(content_type_names) == CONTENT_NUM_TYPES,
32 // VCD_COMPILE_ASSERT(sizeof(foo) < 128, foo_too_large);
34 // For the second argument to VCD_COMPILE_ASSERT, the programmer should supply
41 // is what differentiates VCD_COMPILE_ASSERT from Boost static asserts.
49 #define VCD_COMPILE_ASSERT(expr, msg) \
53 // Implementation details of VCD_COMPILE_ASSERT:
55 // - VCD_COMPILE_ASSERT works by defining an array type that has -1
60 // #define VCD_COMPILE_ASSERT(expr, msg) typedef char msg[(expr) ? 1 : -1]
68 // VCD_COMPILE_ASSERT(foo, msg); // not supposed to compile as foo is