From 43aeadaab8c29351e506c03829c3dc74a9f6b86a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 13 Jan 2021 19:01:49 -0800 Subject: Replaced _exit()s with exits() --- utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils.h') diff --git a/utils.h b/utils.h index aa2fba1..f9d27d4 100644 --- a/utils.h +++ b/utils.h @@ -12,7 +12,7 @@ #define streq(a, b) (strcmp(a, b) == 0) // TODO: better error reporting -#define check(cond, ...) do { if (!(cond)) { fprintf(stderr, __VA_ARGS__); fwrite("\n", 1, 1, stderr); _exit(1); } } while(0) +#define check(cond, ...) do { if (!(cond)) { fprintf(stderr, __VA_ARGS__); fwrite("\n", 1, 1, stderr); exit(1); } } while(0) #define debug(...) do { if (verbose) fprintf(stderr, __VA_ARGS__); } while(0) #define new(t) memcheck(calloc(sizeof(t), 1)) #define xcalloc(a,b) memcheck(calloc(a,b)) -- cgit v1.2.3