MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ImmediateExitProcess

Function ImmediateExitProcess

src/os/windows/crashlog_win.cpp:74–79  ·  view source on GitHub ↗

* Forcefully try to terminate the application. * * @param exit_code The exit code to return. */

Source from the content-addressed store, hash-verified

72 * @param exit_code The exit code to return.
73 */
74[[noreturn]] static void ImmediateExitProcess(uint exit_code)
75{
76 /* TerminateProcess may fail in some special edge cases; fall back to ExitProcess in this case. */
77 TerminateProcess(GetCurrentProcess(), exit_code);
78 ExitProcess(exit_code);
79}
80
81/**
82 * Windows implementation for the crash logger.

Callers 2

ExceptionHandlerFunction · 0.85
CrashDialogFuncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected