diff --git a/c-programming/reverse-ramdisk.c b/c-programming/reverse-ramdisk.c index da5a4d1..4177401 100644 --- a/c-programming/reverse-ramdisk.c +++ b/c-programming/reverse-ramdisk.c @@ -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