This may be a matter of style, but there\'s a bit of a divide in our dev team and I wondered if anyone else had any ideas on the matter...
Basically, we have some de
They're both hideous. Instead, do this:
#ifdef DEBUG #define D(x) do { x } while(0) #else #define D(x) do { } while(0) #endif
Then whenever you need debug code, put it inside D();. And your program isn't polluted with hideous mazes of #ifdef.
D();
#ifdef