Go to the documentation of this file.
50 #define TOSTRING(x) _TOSTRING(x)
52 #define _TOSTRING(x) #x
59 #define ERROR_FILE_LINE(msg) "Error in " __FILE__ " line " TOSTRING(__LINE__) ": " msg
65 # define ASSERT(placeholder) (void)0
66 # define _COMPILE_ASSERT_SYMBOL_INNER(line, msg)
67 # define _COMPILE_ASSERT_SYMBOL(line, msg)
68 # define COMPILE_ASSERT(test, msg)
80 # define COMPILE_ASSERT(test, msg) \
81 typedef char _COMPILE_ASSERT_SYMBOL(__LINE__, msg) [ ((test) ? 1 : -1) ]
83 # define _COMPILE_ASSERT_SYMBOL_INNER(line, msg) __COMPILE_ASSERT_ ## line ## _____ ## msg
85 # define _COMPILE_ASSERT_SYMBOL(line, msg) _COMPILE_ASSERT_SYMBOL_INNER(line, msg)
94 # define ASSERT(test) picAssert(test, ERROR_FILE_LINE("ASSERT(" #test ") failed.\n"))