summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-06 18:52:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-06 18:52:06 +0200
commit48a9024aa96e066b179a865cb658f95f234570c1 (patch)
treef25d090360890f495b6c64a87b260a1030ae4b00 /compat
parent84d091346a9fdf26f5dca2cc49a1c592f40fcd05 (diff)
a
Diffstat (limited to 'compat')
-rw-r--r--compat/assert.hpp4
1 files changed, 2 insertions, 2 deletions
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<std::size_t N, typename...Xs>
-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"; \