diff options
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -7,6 +7,12 @@ #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define UNUSED(a) ((void) (a)) +#define D(...) do { \ + fprintf(stderr, "DEBUG: %s(): ", __func__); \ + fprintf(stderr, __VA_ARGS__); \ + fputs("\n", stderr); \ +} while (0) + #define die(...) do { \ fputs("FATAL: ", stderr); \ fprintf(stderr, __VA_ARGS__); \ |