From 7a143a7f7cf25bd2ef8b14a13d0bd31d20a12dfc Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 22 Feb 2017 23:00:54 +0000 Subject: [PATCH] Use false instead of 0 in the kak_assert do while --- src/assert.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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