summaryrefslogtreecommitdiff
path: root/src/macros.c
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2023-01-02 22:31:49 -0800
committerPreston Pan <preston@nullring.xyz>2023-01-02 22:31:49 -0800
commit64feef1b9ea72adf7ba32998e9dca7d507607498 (patch)
treea409e61877bb51aa6fb2477175dabbf3dbccf298 /src/macros.c
a lot of stuff.
Diffstat (limited to 'src/macros.c')
-rw-r--r--src/macros.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/macros.c b/src/macros.c
new file mode 100644
index 0000000..1effefe
--- /dev/null
+++ b/src/macros.c
@@ -0,0 +1,10 @@
+#include "./include/macros.h"
+
+#include <errno.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+void die(char *message) {
+ fprintf(stderr, "%sFATAL ERROR: %s%s\n", RED, message, reset);
+ exit(EXIT_FAILURE);
+}