aboutsummaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-26 17:54:23 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-26 17:54:23 -0800
commitde0fec8fcb2e09500b4665b07fdad6a2902d9c87 (patch)
tree19f45a18380bf8ee8f252b8ec49e5068332850b9 /utils.h
parentd9cca805a005a0c64252ec47674d68a07ded86e5 (diff)
Removed check() and replaced with err()/errx()
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/utils.h b/utils.h
index 17da86e..96b1aeb 100644
--- a/utils.h
+++ b/utils.h
@@ -13,7 +13,6 @@
#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(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))