diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-09 10:06:54 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-09 10:06:54 +0200 |
| commit | dd00820933be56fbe3ef2b296a5b59b7f78316ca (patch) | |
| tree | b61d37edc8257cf82e26b23b71d57287c8545979 /compat | |
| parent | 4b6e676db5b6e034900adb39510e7b36560e96ad (diff) | |
a
Diffstat (limited to 'compat')
| -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__) |
