Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void AppFactory::ShowError(bool is_fatal, const char *err_msg, ...)
- {
- va_list argList;
- va_start(argList, err_msg);
- #if AUX__WINDOWS
- char buf[4096]; // 4 kb
- StringCchVPrintf(buf, sizeof(buf), err_msg, argList);
- MessageBox(NULL, err_msg, "Error", MB_OK|MB_APPLMODAL|MB_SETFOREGROUND|MB_TOPMOST|MB_ICONERROR);
- #endif
- vprintf(err_msg, argList);
- printf("\n");
- va_end(argList);
- if (is_fatal)
- {
- Debug::MiniDump::WriteMinidump();
- abort();
- }
- }
Add Comment
Please, Sign In to add comment