diff options
Diffstat (limited to 'compat/assert.hpp')
-rw-r--r-- | compat/assert.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compat/assert.hpp b/compat/assert.hpp index c2307a0c..6eba9e41 100644 --- a/compat/assert.hpp +++ b/compat/assert.hpp @@ -21,7 +21,8 @@ constexpr void emit_debug(const char(&pfx)[M], const char(&fmt)[N], Xs... xs) no } template<std::size_t N, typename...Xs> -constexpr inline void abort(const char (&fmt)[N], Xs... xs) noexcept // NOLINT(bugprone-exception-escape) +[[noreturn]] +constexpr inline void abort(const char (&fmt)[N], Xs... xs) noexcept { if (std::is_constant_evaluated()) throw "aborting"; |