From e56136ce1192d04a52b01ccb41284f0b7896430e Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Sat, 16 Jan 2021 20:16:00 +0000 Subject: debug: rename assert() to xassert(), to avoid clashing with --- debug.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'debug.h') diff --git a/debug.h b/debug.h index ba71c047..fcc09830 100644 --- a/debug.h +++ b/debug.h @@ -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); \ -- cgit v1.3