On 02/22/2013 08:16 AM, Andreas Färber wrote: > I would be willing to do a macro-based v3 using do { ... } while (0) if > maintainers can reach agreement on that and on how to do the if (0).
FWIW, I'm in favor of the #ifndef DEBUG # define DEBUG 0 #endif #define MACRO_NAME(...) \ do { if (DEBUG) { log(...) } } while (0) sort of solution. Immediate constant into the IF, which even an -O0 compile will delete as dead. r~