summaryrefslogtreecommitdiffhomepage
path: root/compat/assert.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'compat/assert.hpp')
-rw-r--r--compat/assert.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/compat/assert.hpp b/compat/assert.hpp
index cce97d8e..683b9e72 100644
--- a/compat/assert.hpp
+++ b/compat/assert.hpp
@@ -92,11 +92,12 @@
{ \
if (a != b) [[unlikely]] \
{ \
- DBG_nospace << __FILE__ << ":" << __LINE__ << ": " \
- << Debug::color(Debug::Color::Red) \
+ DBG_nospace << Debug::color(Debug::Color::Red) \
<< "fatal:" \
- << Debug::resetColor \
- << " assertion failed: " << #__VA_ARGS__; \
+ << Debug::resetColor << " " \
+ << "Equality assertion failed at " \
+ << __FILE__ << ":" << __LINE__ << ":"; \
+ DBG_nospace << #__VA_ARGS__; \
DBG_nospace << " expected: " << a; \
DBG_nospace << " actual: " << b; \
fm_EMIT_ABORT(); \