diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2021-01-16 20:16:00 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2021-01-16 20:16:00 +0000 |
| commit | e56136ce1192d04a52b01ccb41284f0b7896430e (patch) | |
| tree | 10948eb4aface28e80d6a075fecf11fad3075618 /debug.h | |
| parent | Print stack trace on assert() failure or when calling fatal_error() (diff) | |
debug: rename assert() to xassert(), to avoid clashing with <assert.h>
Diffstat (limited to 'debug.h')
| -rw-r--r-- | debug.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -8,9 +8,7 @@ #define BUG(...) bug(__FILE__, __LINE__, __func__, __VA_ARGS__) #endif -#undef assert - -#define assert(x) do { \ +#define xassert(x) do { \ IGNORE_WARNING("-Wtautological-compare") \ if (unlikely(!(x))) { \ BUG("assertion failed: '%s'", #x); \ |
