assert_invariant() now terminates the program in failure
rename logAndPanic to panicLog, since it doesn't actually panics.
This commit is contained in:
committed by
Mathias Agopian
parent
1f000bd10d
commit
f1fd96983b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user