summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-26 14:44:19 +0100
committerubq323 <ubq323@ubq323.website>2024-06-26 14:44:19 +0100
commita8519434f058d0ab60bf7f90acc61997cb982cfa (patch)
treee1858d42805e61afbd5c6c0b9d2f3b47bc8411ee /util.h
parent20584e520dfd44393aa66350b442e8a23e46c5a3 (diff)
add cfunc type and rudimentary stdlib
Diffstat (limited to 'util.h')
-rw-r--r--util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.h b/util.h
index b0f2658..7cbfa44 100644
--- a/util.h
+++ b/util.h
@@ -1,6 +1,8 @@
#ifndef _util_h
#define _util_h
+#include <stdio.h>
+
#define CHECK(cond, ...) do { if (!(cond)) { fprintf(stderr, __VA_ARGS__); exit(1); } } while(0)
#define ERROR(...) CHECK(false, __VA_ARGS__)