From d08f28b6e839c53caefe06fe01e601541e3acf26 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sat, 30 Dec 2023 13:42:43 +0300 Subject: [PATCH] reverse-ramdisk.c: simplify macro `line_fail` --- c-programming/reverse-ramdisk.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/c-programming/reverse-ramdisk.c b/c-programming/reverse-ramdisk.c index 0fe67b2..89604f4 100644 --- a/c-programming/reverse-ramdisk.c +++ b/c-programming/reverse-ramdisk.c @@ -29,9 +29,7 @@ To-Do: Add thread-safe versions of functions (use postfix `_r`) #endif #ifdef DEBUG -# define line_fail(x) do { \ - printf("failed on line %d\n", __LINE__ + x); \ -} while (0) +# define line_fail(x) printf("failed on line %d\n", __LINE__ + x) #else # define line_fail(x) #endif