diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-01-14 13:20:48 +0000 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-01-14 13:20:48 +0000 |
commit | 5f3c8265f2717f72d68d8eb170fbe2dd114d7b76 (patch) | |
tree | 9c35e496749b61b40c2c18626eb45bde75d74d06 /includes/compiler/CError.h | |
parent | 00edfdb0d430d8bf1d2fc98cb226114ef271d993 (diff) | |
download | MWCC-5f3c8265f2717f72d68d8eb170fbe2dd114d7b76.tar.gz MWCC-5f3c8265f2717f72d68d8eb170fbe2dd114d7b76.zip |
fix lots more bugs, add better logging
Diffstat (limited to 'includes/compiler/CError.h')
-rw-r--r-- | includes/compiler/CError.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/compiler/CError.h b/includes/compiler/CError.h index 754bdef..8eaefd9 100644 --- a/includes/compiler/CError.h +++ b/includes/compiler/CError.h @@ -3,8 +3,8 @@ #include "compiler/common.h" -#define CError_ASSERT(line, cond) if (!(cond)) { CError_Internal(__FILE__, line); } -#define CError_FAIL(line, cond) if (cond) { CError_Internal(__FILE__, line); } +#define CError_ASSERT(line, cond) do { if (!(cond)) { CError_Internal(__FILE__, line); } } while (0) +#define CError_FAIL(line, cond) do { if (cond) { CError_Internal(__FILE__, line); } } while (0) #define CError_FATAL(line) do { CError_Internal(__FILE__, line); } while (0) enum { |