@@ -46,37 +46,38 @@ void WindowsStoreDebug::AssertionFailed(const Char* Message, const char* Functio
4646 else
4747 {
4848 OutputDebugMessage (DEBUG_MESSAGE_SEVERITY_ERROR, AssertionFailedMessage.c_str (), nullptr , nullptr , 0 );
49- if (GetBreakOnError ())
50- {
51- __debugbreak ();
52- // int nCode = MessageBoxA(NULL,
53- // FullMsg.c_str(),
54- // "Runtime assertion failed",
55- // MB_TASKMODAL|MB_ICONHAND|MB_ABORTRETRYIGNORE|MB_SETFOREGROUND);
49+ }
50+
51+ if (GetBreakOnError ())
52+ {
53+ __debugbreak ();
54+ // int nCode = MessageBoxA(NULL,
55+ // FullMsg.c_str(),
56+ // "Runtime assertion failed",
57+ // MB_TASKMODAL|MB_ICONHAND|MB_ABORTRETRYIGNORE|MB_SETFOREGROUND);
5658
57- // // Abort: abort the program
58- // if (nCode == IDABORT)
59- // {
60- // // raise abort signal
61- // raise(SIGABRT);
59+ // // Abort: abort the program
60+ // if (nCode == IDABORT)
61+ // {
62+ // // raise abort signal
63+ // raise(SIGABRT);
6264
63- // // We usually won't get here, but it's possible that
64- // // SIGABRT was ignored. So exit the program anyway.
65- // exit(3);
66- // }
65+ // // We usually won't get here, but it's possible that
66+ // // SIGABRT was ignored. So exit the program anyway.
67+ // exit(3);
68+ // }
6769
68- // // Retry: call the debugger
69- // if (nCode == IDRETRY)
70- // {
71- // DebugBreak();
72- // /* return to user code */
73- // return;
74- // }
70+ // // Retry: call the debugger
71+ // if (nCode == IDRETRY)
72+ // {
73+ // DebugBreak();
74+ // /* return to user code */
75+ // return;
76+ // }
7577
76- // // Ignore: continue execution
77- // if (nCode == IDIGNORE)
78- // return;
79- }
78+ // // Ignore: continue execution
79+ // if (nCode == IDIGNORE)
80+ // return;
8081 }
8182}
8283
0 commit comments