summaryrefslogtreecommitdiff
path: root/inc/cad/log.h
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2025-12-07 23:11:22 +0100
committerJesper Jensen <jesper@jnsn.dev>2025-12-07 23:11:22 +0100
commit7a5e295029e8a2c176e4b75f06f52a43bca7ccbd (patch)
tree8f7c812175acdcae0ea6a6e3b72c2d5b64ad388e /inc/cad/log.h
parente22588e908a9a2b172a8965cfd8767305dcb3459 (diff)
A little bit of cleanup and renaming
Diffstat (limited to 'inc/cad/log.h')
-rw-r--r--inc/cad/log.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/cad/log.h b/inc/cad/log.h
new file mode 100644
index 0000000..dd46479
--- /dev/null
+++ b/inc/cad/log.h
@@ -0,0 +1,8 @@
+#pragma once
+
+#define LOG(fmt, ...) \
+ fprintf(stderr, "%s:%d: " fmt, __FILE__, __LINE__, ##__VA_ARGS__);
+
+#define CRASH(fmt, ...) \
+ fprintf(stderr, "%s:%d: " fmt, __FILE__, __LINE__, ##__VA_ARGS__); \
+ abort();