1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-12-26 02:29:50 +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
# 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 { \
printf(__VA_ARGS__); \
fflush(stdout); \
} while (0)
#else
# define LINE_FAIL(x)
# define DBG_PRINT(...)
#endif