I am using an application in c++ that uses a special dprintf function to print information, this is an example:
dprintf(verbose, \"The value is: %d\", i); >
#ifdef DEBUG #define dprintf(format, ...) real_dprintf(format, __VA_ARGS__) #else #define dprintf #endif
Here real_dprintf() is the "real" function that is invoked, and dprintf() is just a macro wrapping the call.