summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/util.h b/util.h
new file mode 100644
index 0000000..b0f2658
--- /dev/null
+++ b/util.h
@@ -0,0 +1,10 @@
+#ifndef _util_h
+#define _util_h
+
+#define CHECK(cond, ...) do { if (!(cond)) { fprintf(stderr, __VA_ARGS__); exit(1); } } while(0)
+#define ERROR(...) CHECK(false, __VA_ARGS__)
+
+
+
+#endif
+