| 41 | } |
| 42 | |
| 43 | void CScriptEngine::unload() |
| 44 | { |
| 45 | extern void destroy_lua_wpn_params(); |
| 46 | destroy_lua_wpn_params(); |
| 47 | if (MainMenu()) |
| 48 | { |
| 49 | MainMenu()->DestroyInternal(true); |
| 50 | } |
| 51 | |
| 52 | xr_delete(g_object_factory); |
| 53 | |
| 54 | close(); // вызовем тут явно |
| 55 | |
| 56 | no_files.clear(); |
| 57 | } |
| 58 | |
| 59 | #define DEF_LUA_ERROR_TEMPLATE(L) \ |
| 60 | print_output(L, "[" __FUNCTION__ "]", LUA_ERRRUN); \ |
nothing calls this directly
no test coverage detected