diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-07 21:38:42 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-07 21:38:42 +0200 |
commit | d19a44bcb53cebbee0ae51981f66b93b31cb9dcb (patch) | |
tree | f7d7d5ece879418b0a19e3b61cae2b0136096d87 /compat/assert.hpp | |
parent | 6e19e9446b436d9608b5a4931f25d328a5e56f93 (diff) |
a
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(); } |