From 5bfd97756ad5c51e6a810d67ae69d054c7b38875 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 9 Oct 2022 10:52:23 +0200 Subject: a --- compat/assert.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compat') diff --git a/compat/assert.hpp b/compat/assert.hpp index 65d7a7fd..3b59fd56 100644 --- a/compat/assert.hpp +++ b/compat/assert.hpp @@ -39,12 +39,12 @@ constexpr inline void abort(const char (&fmt)[N], Xs... xs) noexcept #define ABORT(...) ::Magnum::Examples::detail::abort(__VA_ARGS__) -#define ASSERT(expr) \ +#define ASSERT(...) \ do { \ - if (!(expr)) { \ + if (!(__VA_ARGS__)) { \ ::Magnum::Examples::detail:: \ abort("assertion failed: '%s' in %s:%d", \ - #expr, __FILE__, __LINE__); \ + #__VA_ARGS__, __FILE__, __LINE__); \ } \ } while(false) -- cgit v1.2.3