diff --git a/src/assert.hh b/src/assert.hh index 406420d8..87a1da3e 100644 --- a/src/assert.hh +++ b/src/assert.hh @@ -21,9 +21,9 @@ void on_assert_failed(const char* message); if (not (__VA_ARGS__)) \ on_assert_failed("assert failed \"" #__VA_ARGS__ \ "\" at " __FILE__ ":" TOSTRING(__LINE__)); \ - } while (0) + } while (false) #else - #define kak_assert(...) do {} while (0) + #define kak_assert(...) do {} while(false) #endif