Make Assert() throw an exception too.
This commit is contained in:
@@ -125,7 +125,7 @@ void Log::Assert(bool condition, const std::string& message)
|
||||
free(messages);
|
||||
#endif
|
||||
|
||||
exit(1);
|
||||
throw std::runtime_error("Log::Assert() failed:" + message);
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user