diff options
Diffstat (limited to 'compat/assert.hpp')
-rw-r--r-- | compat/assert.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
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__) |