aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2022-12-13 23:30:39 +0100
committerJan200101 <sentrycraft123@gmail.com>2022-12-13 23:30:39 +0100
commit8bdebaeaf9c2ac8b9606d97673d55b40e752ca53 (patch)
treea6d78a2711215898360b2829a5c73ed5d4cb9aed
parent7f85e6258de886259421dad28358633b57f874fb (diff)
downloadpolecat-8bdebaeaf9c2ac8b9606d97673d55b40e752ca53.tar.gz
polecat-8bdebaeaf9c2ac8b9606d97673d55b40e752ca53.zip
update unreachable macro to reuse format
multiple instances of UNREACHABLE will reuse it saving space
-rw-r--r--src/defines.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/defines.h b/src/defines.h
index 7e08ad1..dc9c39e 100644
--- a/src/defines.h
+++ b/src/defines.h
@@ -28,7 +28,7 @@
#define USAGE_STR "Usage: " NAME
#ifndef NDEBUG
-#define UNREACHABLE printf("!!!UNREACHABLE CODE REACHED!!!\n" __FILE__ ":L%i\n", __LINE__); exit(0);
+#define UNREACHABLE printf("!!!UNREACHABLE CODE REACHED!!!\n%s:L%i\n", __FILE__, __LINE__); exit(0);
#else
#define UNREACHABLE
#endif