9 ms·
#define DEBUG(fmt, ...) if (DEBUG) { printf(fmt, ...);} ? (change syntax to actually work)
by GFK_of_xmaspast 12y ago
#define DEBUG(fmt, ...) if (DEBUG) { printf(fmt, ...);}
?
(change syntax to actually work)
- jeorgun 12y agoThat does something similar, sure, but what it in fact is is a macro. As snikeris was saying, you couldn't write anything quite like that #define in a macroless language like Java.