diff options
Diffstat (limited to 'compat/assert.hpp')
| -rw-r--r-- | compat/assert.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compat/assert.hpp b/compat/assert.hpp index 6eba9e41..65d7a7fd 100644 --- a/compat/assert.hpp +++ b/compat/assert.hpp @@ -24,9 +24,12 @@ template<std::size_t N, typename...Xs> [[noreturn]] constexpr inline void abort(const char (&fmt)[N], Xs... xs) noexcept { +#if 0 if (std::is_constant_evaluated()) throw "aborting"; - else { + else +#endif + { emit_debug("fatal: ", fmt, xs...); std::abort(); } |
