| 59 | } |
| 60 | |
| 61 | static void lua_init() |
| 62 | { |
| 63 | if (g_lua_state == nullptr) |
| 64 | { |
| 65 | mem_tracker_disable(); |
| 66 | |
| 67 | g_lua_state = luaL_newstate(); |
| 68 | |
| 69 | if (g_lua_state == nullptr) |
| 70 | { |
| 71 | EXIT("Lua state is NULL"); |
| 72 | } |
| 73 | |
| 74 | load_libs(); |
| 75 | |
| 76 | g_help_list = new HelpFuncList; |
| 77 | |
| 78 | mem_tracker_enable(); |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | KYTY_SUBSYSTEM_INIT(Scripts) |
| 83 | { |
no test coverage detected