Created
March 31, 2015 19:08
-
-
Save chuangx/c622795d96ce552d9bad to your computer and use it in GitHub Desktop.
DPRINTF Macro 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
#define DEBUG | |
#ifdef DEBUG | |
#define DPRINTF(fmt, ...) \ | |
fprintf(stderr, "[%s][%s]%d: " fmt, __FILE__, __func__, __LINE__, ##__VA_ARGS__); | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment