diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h index f376195..5916b99 100644 --- a/src/common.h +++ b/src/common.h @@ -28,9 +28,15 @@ #define USAGE_STR "Usage: " NAME #ifdef DEBUG -#define unreachable printf("unreachable code reached\n" __FILE__ ":L%i\n", __LINE__); exit(0); +#define UNREACHABLE printf("unreachable code reached\n" __FILE__ ":L%i\n", __LINE__); exit(0); #else -#define unreachable +#define UNREACHABLE +#endif + +#ifdef __GNUC__ +#define UNUSED __attribute__((__unused__)) +#else +#define UNUSED #endif struct MemoryStruct { |