Last active
August 29, 2015 14:08
-
-
Save ninux/75737af00635d9512164 to your computer and use it in GitHub Desktop.
debug messages in c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef DEBUG | |
#define _dbgmsg(MESSAGE, ...) printf("DEBUG: " #MESSAGE "\n", \ | |
##__VA_ARGS__) | |
#else | |
#define _dbgmsg(MESSAGE) {} | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
include <stdio.h>