From 7d24d2b5666f2eaa098582dca50f700231221703 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 9 Oct 2023 11:45:08 +0200 Subject: a --- compat/assert.hpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'compat') 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__) -- cgit v1.2.3