4coder/platform_win32/win32_error_box.cpp

23 lines
339 B
C++
Raw Normal View History

2017-07-18 23:41:28 +00:00
/*
* Mr. 4th Dimention - Allen Webster
*
* 18.07.2017
*
2017-11-10 21:13:02 +00:00
* Windows fatal error message box.
2017-07-18 23:41:28 +00:00
*
*/
// TOP
internal void
2017-11-10 21:13:02 +00:00
system_error_box(char *msg, b32 shutdown = true){
LOGF("error box: %s\n", msg);
MessageBox_utf8(&shared_vars.scratch, 0, (u8*)msg, (u8*)"Error", 0);
2017-11-10 21:13:02 +00:00
if (shutdown){
exit(1);
}
2017-07-18 23:41:28 +00:00
}
// BOTTOM