From 48a9024aa96e066b179a865cb658f95f234570c1 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 6 Oct 2022 18:52:06 +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 099880d3..9c55c5b3 100644 --- a/compat/assert.hpp +++ b/compat/assert.hpp @@ -7,7 +7,7 @@ namespace Magnum::Examples::detail { template -constexpr void abort(const char (&fmt)[N], Xs... xs) +constexpr inline void abort(const char (&fmt)[N], Xs... xs) { if (std::is_constant_evaluated()) throw "aborting"; @@ -23,7 +23,7 @@ constexpr void abort(const char (&fmt)[N], Xs... xs) namespace Magnum::Examples { -#define ABORT(...) \ +#define ABORT(...) \ do { \ if (std::is_constant_evaluated()) \ throw "aborting"; \ -- cgit v1.2.3