'Generic Commit'
Some checks failed
Build-Test-Publish / build (push) Has been cancelled

This commit is contained in:
Your Name
2025-06-14 16:55:57 +12:00
parent aa8ccde836
commit 50a9ffeaf0

View File

@@ -163,8 +163,10 @@ void assert_failed(
std::source_location location = std::source_location::current() std::source_location location = std::source_location::current()
) { ) {
if (!condition) { if (!condition) {
std::cerr << "Assertion failed at " << location.file_name() << ":" << location.line() << ": " std::cerr << std::endl
<< location.function_name() << ": " << message << "\n"; << "Assertion failed at " << location.file_name() << ":" << location.line() << ": "
<< location.function_name() << ": " << std::endl
<< colors::red << message << colors::reset << std::endl << std::endl;
print_stacktrace(); print_stacktrace();
std::abort(); std::abort();
} }