aboutsummaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'debug.h')
-rw-r--r--debug.h4
1 files changed, 1 insertions, 3 deletions
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); \