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:
parent
226cb79663
commit
57730252f0
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user