update DEBUG_PRINT to include file name and line number
This commit is contained in:
parent
38f03105bd
commit
ca70f08995
3
wm.h
3
wm.h
@ -55,7 +55,8 @@ if (c == NULL) \
|
||||
#define DEBUG 1
|
||||
|
||||
#define DEBUG_PRINT(fmt, ...) \
|
||||
do { if (DEBUG) fprintf(stderr, fmt, ##__VA_ARGS__); } while (0);
|
||||
do { if (DEBUG) { fprintf(stderr, "[%s:%d] ", __FILE__, __LINE__); \
|
||||
fprintf(stderr, fmt, ##__VA_ARGS__);} } while (0);
|
||||
|
||||
#define WM_WS_NAME_LEN 64
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user