summaryrefslogtreecommitdiffhomepage
path: root/compat/assert.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-09 10:52:23 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-09 10:52:23 +0200
commit5bfd97756ad5c51e6a810d67ae69d054c7b38875 (patch)
tree83a469071c7e670f342fd161b1b6e1abfad981ac /compat/assert.hpp
parentf6d822abd400d7a61ccacb49df75212132bcec66 (diff)
a
Diffstat (limited to 'compat/assert.hpp')
-rw-r--r--compat/assert.hpp6
1 files changed, 3 insertions, 3 deletions
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)