diff options
Diffstat (limited to 'compat/assert.hpp')
-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__) |