/** * CSE 374 example program * Demonstration of using preprocessor conditional compilation to * define a debug print statement. * Compile the program like so in order to enable debug printing: * gcc -o debug -D DEBUG debug.c */ #include #ifdef DEBUG #define DBG_PRINT(x) printf("%s\n", x) #else #define DBG_PRINT(x) // nothing! #endif int main(int argc, char **argv) { DBG_PRINT("hello world!"); return 0; }