Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
GFK_of_xmaspast
· 11y ago · 0 comments
#define DEBUG(fmt, ...) if (DEBUG) { printf(fmt, ...);}
?
(change syntax to actually work)
Comments
[–]
jeorgun
11y ago
That 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.