summaryrefslogtreecommitdiff
path: root/ccc.h
diff options
context:
space:
mode:
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