1 2 #include <stdio.h> 3 4 #ifndef NDEBUG 5 6 #ifndef DEBUG 7 #define DEBUG 2 8 #endif 9 10 #if DEBUG >= 1 11 #define UNIMPLEMENTED() printf("UNIMPLEMENTED %s\n",__PRETTY_FUNCTION__) 12 #else 13 #define UNIMPLEMENTED() ((void)0) 14 #endif 15 16 #if DEBUG >= 2 17 #define BROKEN() printf("BROKEN %s\n",__PRETTY_FUNCTION__) 18 #else 19 #define BROKEN() ((void)0) 20 #endif 21 22 #if DEBUG >= 3 23 #define CALLED() printf("CALLED %s\n",__PRETTY_FUNCTION__) 24 #else 25 #define CALLED() ((void)0) 26 #endif 27 28 #else 29 30 #define UNIMPLEMENTED() ((void)0) 31 #define BROKEN() ((void)0) 32 #define CALLED() ((void)0) 33 34 #endif 35