Output fatal errors to logcat (Android) [skip ci]
This commit is contained in:
parent
2eb9b14cc2
commit
03b671562b
1 changed files with 4 additions and 3 deletions
|
|
@ -259,12 +259,13 @@ namespace vks
|
||||||
|
|
||||||
void exitFatal(std::string message, std::string caption)
|
void exitFatal(std::string message, std::string caption)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#if defined(_WIN32)
|
||||||
MessageBox(NULL, message.c_str(), caption.c_str(), MB_OK | MB_ICONERROR);
|
MessageBox(NULL, message.c_str(), caption.c_str(), MB_OK | MB_ICONERROR);
|
||||||
|
#elif defined(__ANDROID__)
|
||||||
|
LOGE("Fatal error: %s", message.c_str());
|
||||||
#else
|
#else
|
||||||
// TODO : Linux
|
|
||||||
#endif
|
|
||||||
std::cerr << message << "\n";
|
std::cerr << message << "\n";
|
||||||
|
#endif
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue