From b7a82c980fe7e0c1f9029b55be97422428d65d5a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 11 Jan 2017 09:11:51 +0100 Subject: Clean up code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/util/eprintf.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/util/eprintf.h (limited to 'src/util/eprintf.h') diff --git a/src/util/eprintf.h b/src/util/eprintf.h new file mode 100644 index 0000000..a9b342f --- /dev/null +++ b/src/util/eprintf.h @@ -0,0 +1,10 @@ +/* See LICENSE file for copyright and license details. */ +#include + +void weprintf(const char *fmt, ...); + +#define eprintf(...)\ + (weprintf(__VA_ARGS__), exit(1)) + +#define enprintf(status, ...)\ + (weprintf(__VA_ARGS__), exit(status)) -- cgit v1.2.3-70-g09d2