diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2020-09-06 13:50:37 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2020-09-06 13:50:37 +0200 |
commit | a0253e25c45c66083b751d075cf9a73aa0a183f4 (patch) | |
tree | de6f939f5eb034b629e74b41ae3f454452a7d75d /src/common.h | |
parent | c9333913641ec1b51725f918573d4faae7ecfc8f (diff) | |
download | polecat-a0253e25c45c66083b751d075cf9a73aa0a183f4.tar.gz polecat-a0253e25c45c66083b751d075cf9a73aa0a183f4.zip |
improve basic installer, add unreachable, hide unfinished behind debug
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; |