update DEBUG_PRINT macro definition
This commit is contained in:
parent
588f9e0c60
commit
4d0e9218e5
10
src/wm.h
10
src/wm.h
@ -53,11 +53,13 @@ if (c == NULL) \
|
||||
return; \
|
||||
}
|
||||
|
||||
#define DEBUG 1
|
||||
|
||||
#ifdef DEBUG
|
||||
#define DEBUG_PRINT(fmt, ...) \
|
||||
do { if (DEBUG) { fprintf(stderr, "[%s:%d] ", __FILE__, __LINE__); \
|
||||
fprintf(stderr, fmt, ##__VA_ARGS__);} } while (0);
|
||||
do { { fprintf(stderr, "[%s:%d] ", __FILE__, __LINE__); \
|
||||
fprintf(stderr, fmt, ##__VA_ARGS__);} } while (0);
|
||||
#else
|
||||
#define DEBUG_PRINT(fmt, ...)
|
||||
#endif
|
||||
|
||||
#define WM_WS_NAME_LEN 64
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user