MCPcopy Create free account
hub / github.com/InoriRus/Kyty / lua_init

Function lua_init

source/lib/Scripts/src/Scripts.cpp:61–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61static 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
82KYTY_SUBSYSTEM_INIT(Scripts)
83{

Callers 15

script_dbg_dump_stackFunction · 0.85
LoadStringFunction · 0.85
RunFunction · 0.85
RunFileFunction · 0.85
RunStringFunction · 0.85
RegisterSystemFuncFunction · 0.85
RegisterFuncFunction · 0.85
UnregisterFuncFunction · 0.85
ArgGetVarCountFunction · 0.85
ArgDbgDumpFunction · 0.85
PrintHelpFunction · 0.85
DbgPrintMethod · 0.85

Calls 4

mem_tracker_disableFunction · 0.85
luaL_newstateFunction · 0.85
load_libsFunction · 0.85
mem_tracker_enableFunction · 0.85

Tested by

no test coverage detected