[ox/std] Make assert prints more noticable

This commit is contained in:
Gary Talent 2018-05-17 23:26:34 -05:00
parent a0e336712f
commit 2b6ffa3c3f

View File

@ -19,7 +19,7 @@ namespace ox {
void _assert([[maybe_unused]]const char *file, [[maybe_unused]]int line, [[maybe_unused]]bool pass, [[maybe_unused]]const char *msg) {
#if defined(OX_USE_STDLIB)
if (!pass) {
std::cerr << '(' << file << ':' << line << "): " << msg << std::endl;
std::cerr << "\033[31;1;1mASSERT FAILURE:\033[0m (" << file << ':' << line << "): " << msg << std::endl;
std::abort();
}
#endif