From 5471d80c5350f764ec53733bae9d32c0a1a339e0 Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Sun, 29 Aug 2021 00:47:32 +0200 Subject: Add formal benc cursor --- src/log.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/log.h') diff --git a/src/log.h b/src/log.h index 1717011..12135af 100644 --- a/src/log.h +++ b/src/log.h @@ -13,8 +13,9 @@ printf(format "\n", ## __VA_ARGS__); \ fflush(stderr) -#define fatal(format, ...) \ - printf(format "\n", ## __VA_ARGS__); \ - fflush(stderr); \ - abort() +#define fatal(format, ...) do{\ + printf(format "\n", ## __VA_ARGS__); \ + fflush(stderr); \ + abort(); \ + } while(0) -- cgit v1.2.3