|
@@ -120,13 +120,13 @@ static void SDL_GenerateAssertionReport(void)
|
|
|
}
|
|
|
|
|
|
|
|
|
-static SDL_NORETURN void SDL_ExitProcess(int exitcode)
|
|
|
+static void SDL_ExitProcess(int exitcode)
|
|
|
{
|
|
|
#ifdef __WIN32__
|
|
|
- /* "if you do not know the state of all threads in your process, it is
|
|
|
- better to call TerminateProcess than ExitProcess"
|
|
|
- https://msdn.microsoft.com/en-us/library/windows/desktop/ms682658(v=vs.85).aspx */
|
|
|
- TerminateProcess(GetCurrentProcess(), exitcode);
|
|
|
+ /* "if you do not know the state of all threads in your process, it is
|
|
|
+ better to call TerminateProcess than ExitProcess"
|
|
|
+ https://msdn.microsoft.com/en-us/library/windows/desktop/ms682658(v=vs.85).aspx */
|
|
|
+ TerminateProcess(GetCurrentProcess(), exitcode);
|
|
|
|
|
|
#elif defined(__EMSCRIPTEN__)
|
|
|
emscripten_cancel_main_loop(); /* this should "kill" the app. */
|
|
@@ -138,7 +138,7 @@ static SDL_NORETURN void SDL_ExitProcess(int exitcode)
|
|
|
}
|
|
|
|
|
|
|
|
|
-static SDL_NORETURN void SDL_AbortAssertion(void)
|
|
|
+static void SDL_AbortAssertion(void)
|
|
|
{
|
|
|
SDL_Quit();
|
|
|
SDL_ExitProcess(42);
|