4coder/platform_mac/mac_error_box.cpp

23 lines
292 B
C++
Raw Normal View History

/*
* Mr. 4th Dimention - Allen Webster
*
* 26.09.2017
*
* Mac error box implementation.
*
*/
// TOP
internal void
2017-11-10 21:13:02 +00:00
system_error_box(char *msg, b32 shutdown = true){
2017-11-12 18:47:57 +00:00
LOGF("error box: %s\n", msg);
2017-11-10 21:21:57 +00:00
osx_error_dialogue(msg);
2017-11-10 21:13:02 +00:00
if (shutdown){
exit(1);
}
}
// BOTTOM