diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-12-13 23:30:39 +0100 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-12-13 23:30:39 +0100 |
commit | 8bdebaeaf9c2ac8b9606d97673d55b40e752ca53 (patch) | |
tree | a6d78a2711215898360b2829a5c73ed5d4cb9aed /src/defines.h | |
parent | 7f85e6258de886259421dad28358633b57f874fb (diff) | |
download | polecat-8bdebaeaf9c2ac8b9606d97673d55b40e752ca53.tar.gz polecat-8bdebaeaf9c2ac8b9606d97673d55b40e752ca53.zip |
update unreachable macro to reuse format
multiple instances of UNREACHABLE will reuse it saving space
Diffstat (limited to 'src/defines.h')
-rw-r--r-- | src/defines.h | 2 |
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 |