summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-07 16:45:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-07 16:45:28 +0200
commit15e8cebc19bfb484ba46a3589378d52ca769769e (patch)
treecd4174c7d15671434773acdc957a6bf894d6b29d /compat
parent7b7e0ba851189848ff1c89761a1609e6a978fb19 (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 e8335843..c2307a0c 100644
--- a/compat/assert.hpp
+++ b/compat/assert.hpp
@@ -7,7 +7,7 @@
namespace Magnum::Examples::detail {
template<std::size_t N, std::size_t M, typename... Xs>
-constexpr void emit_debug(const char(&pfx)[M], const char(&fmt)[N], Xs... xs)
+constexpr void emit_debug(const char(&pfx)[M], const char(&fmt)[N], Xs... xs) noexcept
{
if (std::is_constant_evaluated())
return;
@@ -21,7 +21,7 @@ constexpr void emit_debug(const char(&pfx)[M], const char(&fmt)[N], Xs... xs)
}
template<std::size_t N, typename...Xs>
-constexpr inline void abort(const char (&fmt)[N], Xs... xs)
+constexpr inline void abort(const char (&fmt)[N], Xs... xs) noexcept // NOLINT(bugprone-exception-escape)
{
if (std::is_constant_evaluated())
throw "aborting";