From 32dc8587ab24d5832fb3826a631c8c50524a9a25 Mon Sep 17 00:00:00 2001 From: Dacav Date: Sat, 29 Aug 2020 15:20:07 +0200 Subject: macros.h --- forg-import.c | 3 ++- macros.h | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 macros.h diff --git a/forg-import.c b/forg-import.c index 9f6cdb4..30ee7fc 100644 --- a/forg-import.c +++ b/forg-import.c @@ -157,7 +157,8 @@ iter_files(const options_t *opts, void **aux) goto done; return opts->files[ctx->files_list.next++]; } - err(EX_SOFTWARE, __FILE__ ":%d - buggy", __LINE__); + + bug_abort; done: free(*aux); diff --git a/macros.h b/macros.h new file mode 100644 index 0000000..ecf16ce --- /dev/null +++ b/macros.h @@ -0,0 +1,5 @@ +#pragma once + +#include + +#define bug_abort err(EX_SOFTWARE, __FILE__ ":%d - buggy", __LINE__) -- cgit 1.4.1-2-gfad0