From 437dd5940bad6133561cb896cd558881fa5c8b44 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 6 Oct 2022 17:30:31 +0200 Subject: a --- compat/assert.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compat') diff --git a/compat/assert.hpp b/compat/assert.hpp index 0d433274..e4dd827a 100644 --- a/compat/assert.hpp +++ b/compat/assert.hpp @@ -23,12 +23,12 @@ constexpr void abort(const char (&fmt)[N], Xs... xs) namespace Magnum::Examples { -#define ABORT(fmt, ...) \ +#define ABORT(...) \ do { \ if (std::is_constant_evaluated()) \ throw "aborting"; \ else \ - ::Magnum::Examples::detail:: abort(fmt, __VA_ARGS__); \ + ::Magnum::Examples::detail:: abort(__VA_ARGS__); \ } while (false) #define ASSERT(expr) \ -- cgit v1.2.3