aboutsummaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-18 11:39:20 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-18 11:39:20 -0800
commit4b3579c968a5f6c9239ee6235f03108d80e1a2e3 (patch)
treeec318cefbd3433a24a0c6d4614e3a3e09400301e /utils.h
parent0b0e99bfac8e11463ae15211882aab98ba150dcb (diff)
More bools, because why not
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h2
1 files changed, 1 insertions, 1 deletions
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))