MCPcopy Create free account
hub / github.com/defold/defold / SignalHandler

Function SignalHandler

engine/crash/src/backtrace_win32.cpp:279–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277 }
278
279 static void SignalHandler(int signum)
280 {
281 // The previous (default) behavior is restored for the signal.
282 // Unless this is done first thing in the signal handler we'll
283 // be stuck in a signal-handler loop forever.
284 signal(signum, 0);
285
286 fflush(stdout);
287 bool is_debug_mode = dLib::IsDebugMode();
288 dLib::SetDebugMode(true);
289
290 CheckConsoleNeeded(is_debug_mode);
291 g_DumpWritten = true;
292 GenerateCallstack(0);
293
294 dLib::SetDebugMode(is_debug_mode);
295 }
296
297 static void InstallOnSignal(int signum)
298 {

Callers

nothing calls this directly

Calls 4

IsDebugModeFunction · 0.85
SetDebugModeFunction · 0.85
CheckConsoleNeededFunction · 0.85
GenerateCallstackFunction · 0.70

Tested by

no test coverage detected