assert print function
parent
93f56ebcb2
commit
215a596d21
|
@ -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.
|
||||
|
|
|
@ -107,5 +107,11 @@ namespace blt {
|
|||
#endif
|
||||
}
|
||||
|
||||
bool assert_print(const char* what)
|
||||
{
|
||||
BLT_ERROR(what);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue