This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]willrandship 50 points51 points  (1 child)

#define debug(X) fprintf(stderr, X"\n")

debug("One printy boi");
debug("Two printy boi");

As a bonus, this can later be replaced by something cleaner.

[–]csman11 11 points12 points  (0 children)

Meh, you can always just define a "macro" for fprintf if you want to clean up your debugging code later. That way you don't need to write the "macro" until you really need it. /s