assert_invariant() now terminates the program in failure

rename logAndPanic to panicLog, since it doesn't actually panics.
This commit is contained in:
Mathias Agopian
2021-02-22 12:32:38 -08:00
committed by Mathias Agopian
parent 1f000bd10d
commit f1fd96983b
3 changed files with 4 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ namespace utils {
void panic(const char *func, const char * file, int line, const char *assertion) noexcept {
PANIC_LOG("%s:%d: failed assertion `%s'\n", file, line, assertion);
std::abort();
}
} // namespace filament