diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h index f33c152..03b103f 100644 --- a/src/common.h +++ b/src/common.h @@ -26,6 +26,10 @@ #define USAGE_STR "Usage: " NAME +// inspired by Zigs unreachable +#include <assert.h> +#define unreachable assert(0 && "unreachable code reached") + struct MemoryStruct { uint8_t* memory; size_t size; |