aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--common.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/common.c b/common.c
index 965c020..6b1cb8f 100644
--- a/common.c
+++ b/common.c
@@ -7,13 +7,9 @@ void fatal_error(const char* msg, ...) {
exit(1);
}
-void unreachable() {
- fatal_error("unreachable");
-}
+#define unreachable() fatal_error("%s:%d: unreachable", __FILE__, __LINE__)
-void unimplemented() {
- fatal_error("unimplemented");
-}
+#define unimplemented() fatal_error("%s:%d: unimplemented", __FILE__, __LINE__)
struct String {
char* data;