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

Method close

ogsr_engine/COMMON_AI/script_engine.cpp:512–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510}
511
512void CScriptEngine::close()
513{
514 if (m_virtual_machine)
515 {
516 // Msg("[CScriptStorage] Closing LuaJIT - start");
517 lua_close(m_virtual_machine); // Вот тут закрывается LuaJIT.
518 // Msg("[CScriptStorage] Closing LuaJIT - end");
519 m_virtual_machine = nullptr;
520 }
521}
522
523void CScriptEngine::reinit(lua_State* LSVM)
524{

Callers 6

loadMethod · 0.45
CGameLevelCrossTableMethod · 0.45
~CGameLevelCrossTableMethod · 0.45
loadMethod · 0.45
load_rawMethod · 0.45
loadMethod · 0.45

Calls 1

lua_closeFunction · 0.50

Tested by

no test coverage detected