1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-12-26 11:30:03 +05:30

reverse-ramdisk.c: define DBG_PRINT if TEST is defined

This commit is contained in:
Intel A80486DX2-66 2024-01-06 22:26:22 +03:00
parent 226cb79663
commit 57730252f0
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -32,12 +32,16 @@
#ifdef DEBUG #ifdef DEBUG
# define LINE_FAIL(x) printf("failed on line %d\n", __LINE__ + x) # define LINE_FAIL(x) printf("failed on line %d\n", __LINE__ + x)
#else
# define LINE_FAIL(x)
#endif
#if defined(DEBUG) || defined(TEST)
# define DBG_PRINT(...) do { \ # define DBG_PRINT(...) do { \
printf(__VA_ARGS__); \ printf(__VA_ARGS__); \
fflush(stdout); \ fflush(stdout); \
} while (0) } while (0)
#else #else
# define LINE_FAIL(x)
# define DBG_PRINT(...) # define DBG_PRINT(...)
#endif #endif