I want to insert some debug output statements into a big C code base. These debug output statements will be controlled by a compiler option switch.
The debug output statement looks like this:
#ifdef DEBUG_FLAG
Print(someSymbol)
#endif
To save some typing , I am wondering if it is possible to define a simple macro that expands to above debug output statement block?
For example:
#define DBG_MACRO(someSymbol) (something that can expand to above)