summaryrefslogtreecommitdiff
path: root/ccc.h
diff options
context:
space:
mode:
authorCarson Fleming <[email protected]>2026-03-13 01:05:34 -0400
committerCarson Fleming <[email protected]>2026-03-13 01:05:34 -0400
commit7a361c2e7385c2e670a0e2cc8d9092814ea17253 (patch)
tree4573177a388412a2e7bc1b39df2e8569e7f9316e /ccc.h
downloadccc-7a361c2e7385c2e670a0e2cc8d9092814ea17253.tar.gz
not even compiled once but we ball
Diffstat (limited to 'ccc.h')
-rw-r--r--ccc.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/ccc.h b/ccc.h
new file mode 100644
index 0000000..6b41480
--- /dev/null
+++ b/ccc.h
@@ -0,0 +1,12 @@
+#ifndef CCC_H
+#define CCC_H
+#include <stdio.h>
+#include <stdlib.h>
+
+#define CCC_PANIC { perror("ccc"); exit(1); }
+#define CCC_ERROR(format, ...) {\
+ fprintf(stderr, "line %ld: " format "\n", LINE __VA_OPT__(,) __VA_ARGS__);\
+ exit(1);\
+}
+
+#endif