assert print function

v1
Brett 2024-01-31 17:13:22 -05:00
parent 93f56ebcb2
commit 215a596d21
2 changed files with 8 additions and 0 deletions

View File

@ -16,6 +16,8 @@ namespace blt
void b_assert_failed(const char* expression, const char* path, int line);
void b_throw(const char* what, const char* path, int line);
bool assert_print(const char* what);
}
// prints error with stack trace if assertion fails. Does not stop execution.

View File

@ -107,5 +107,11 @@ namespace blt {
#endif
}
bool assert_print(const char* what)
{
BLT_ERROR(what);
return true;
}
}