| 491 | //********************************************************************************************* |
| 492 | |
| 493 | static 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 | |
| 512 | void CScriptEngine::close() |
| 513 | { |
nothing calls this directly
no test coverage detected