diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-09 11:45:08 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-09 11:45:08 +0200 |
commit | 7d24d2b5666f2eaa098582dca50f700231221703 (patch) | |
tree | d5e8543422a421a61d4cb382a1aa63e452e6e2a5 /compat | |
parent | e12dea8a222324bcdfe6e96bc9ce4cc979c6da47 (diff) |
a
Diffstat (limited to 'compat')
-rw-r--r-- | compat/assert.hpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/compat/assert.hpp b/compat/assert.hpp index 2163c736..b7fb2fe9 100644 --- a/compat/assert.hpp +++ b/compat/assert.hpp @@ -92,11 +92,13 @@ { \ if (a != b) [[unlikely]] \ { \ - DBG_nospace << "assertion failed: fm_assert_equal(" \ - << #__VA_ARGS__ << ")"; \ - DBG_nospace << "in" << __FILE__ << ":" << __LINE__; \ - DBG_nospace << " expected: " << a; \ - DBG_nospace << " actual: " << b; \ + DBG_nospace << __FILE__ << ":" << __LINE__ << ": " \ + << Debug::color(Debug::Color::Red) \ + << "fatal:" \ + << Debug::resetColor \ + << " assertion failed: " << #__VA_ARGS__; \ + DBG_nospace << " expected: " << b; \ + DBG_nospace << " actual: " << a; \ fm_EMIT_ABORT(); \ } \ })(__VA_ARGS__) |