From dd00820933be56fbe3ef2b296a5b59b7f78316ca Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 9 Oct 2023 10:06:54 +0200 Subject: a --- compat/assert.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'compat') diff --git a/compat/assert.hpp b/compat/assert.hpp index 6e7ef5c0..d4c6d49d 100644 --- a/compat/assert.hpp +++ b/compat/assert.hpp @@ -92,8 +92,11 @@ { \ if (a != b) [[unlikely]] \ { \ - DBG_nospace << "fatal: " << a << " != " << b \ - << " in " << __FILE__ << ":" << __LINE__; \ + DBG_nospace << "assertion failed: " \ + << #__VA_ARGS__ << " in " \ + << __FILE__ << ":" << __LINE__; \ + DBG_nospace << " expected: " << a; \ + DBG_nospace << " actual: " << b; \ fm_EMIT_ABORT(); \ } \ })(__VA_ARGS__) -- cgit v1.2.3