MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / ScriptCrashHandler

Function ScriptCrashHandler

ogsr_engine/COMMON_AI/script_engine.cpp:493–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491//*********************************************************************************************
492
493static void ScriptCrashHandler(bool dump_lua_locals)
494{
495 if (!Device.OnMainThread())
496 return;
497
498 try
499 {
500 Msg("***************************[ScriptCrashHandler]**********************************");
501 ai().script_engine().print_stack();
502 if (dump_lua_locals)
503 ai().script_engine().dump_state();
504 Msg("*********************************************************************************");
505 }
506 catch (...)
507 {
508 Msg("Can't dump script call stack - Engine corrupted");
509 }
510}
511
512void CScriptEngine::close()
513{

Callers

nothing calls this directly

Calls 3

MsgFunction · 0.85
print_stackMethod · 0.80
dump_stateMethod · 0.80

Tested by

no test coverage detected