Hello,
I heard that you can conditionally compile something with the #ifdef and #endif. How can I do this. I've looked online but can't find anything. Here's what I'm doing:
Code:
#ifdef DEBUG
printf("inside DEBUG block\n");
#endif
When I compile this with gcc -DEBUG -o test test.c, the statement is never executed. Am I doing something wrong?
Thanks for any help.