From 4b3579c968a5f6c9239ee6235f03108d80e1a2e3 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 18 Jan 2021 11:39:20 -0800 Subject: More bools, because why not --- utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils.h') diff --git a/utils.h b/utils.h index f3f81f0..4c3a065 100644 --- a/utils.h +++ b/utils.h @@ -13,7 +13,7 @@ #include "match.h" #define streq(a, b) (strcmp(a, b) == 0) -#define check(cond, ...) do { if (!(cond)) { (void)fprintf(stderr, __VA_ARGS__); (void)fwrite("\n", 1, 1, stderr); exit(EXIT_FAILURE); } } while(0) +#define check(cond, ...) do { if (!(cond)) { (void)fprintf(stderr, __VA_ARGS__); (void)fwrite("\n", 1, 1, stderr); exit(EXIT_FAILURE); } } while(false) #define new(t) memcheck(calloc(1, sizeof(t))) #define xcalloc(a,b) memcheck(calloc(a,b)) #define xrealloc(a,b) memcheck(realloc(a,b)) -- cgit v1.2.3