summaryrefslogtreecommitdiff
path: root/src/assert.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/assert.hh')
-rw-r--r--src/assert.hh8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/assert.hh b/src/assert.hh
index 52bdcf48..a65b09fd 100644
--- a/src/assert.hh
+++ b/src/assert.hh
@@ -12,17 +12,13 @@ void on_assert_failed(const char* message);
#define TOSTRING(X) STRINGIFY(X)
#define COMMA ,
-#ifdef assert
-#undef assert
-#endif
-
#ifdef KAK_DEBUG
- #define assert(condition) \
+ #define kak_assert(condition) \
if (not (condition)) \
on_assert_failed("assert failed \"" #condition \
"\" at " __FILE__ ":" TOSTRING(__LINE__))
#else
- #define assert(condition)
+ #define kak_assert(condition)
#endif