update DEBUG_PRINT to include file name and line number

This commit is contained in:
Akos Horvath 2023-05-28 17:21:47 +02:00
parent 38f03105bd
commit ca70f08995

3
wm.h
View File

@ -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