MCPcopy Create free account
hub / github.com/Tencent/UnLua / GetState

Function GetState

Plugins/UnLua/Source/UnLua/Private/UnLuaBase.cpp:41–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 }
40
41 lua_State* GetState()
42 {
43 const auto Env = IUnLuaModule::Get().GetEnv();
44 return Env ? Env->GetMainState() : nullptr;
45 }
46
47 bool Startup()
48 {

Callers 15

ParseMethod · 0.85
AppendMethod · 0.85
PatchMethod · 0.85
CloneTopOperandMethod · 0.85
CreateStateFunction · 0.85
SetUpMethod · 0.85
RunTestMethod · 0.85
RunFunction · 0.85
RunTestMethod · 0.85
RunTestMethod · 0.85
RunTestMethod · 0.85
RunTestMethod · 0.85

Calls 2

GetFunction · 0.50
GetEnvMethod · 0.45

Tested by 15

SetUpMethod · 0.68
RunTestMethod · 0.68
RunFunction · 0.68
RunTestMethod · 0.68
RunTestMethod · 0.68
RunTestMethod · 0.68
RunTestMethod · 0.68
RunTestMethod · 0.68
RunTestMethod · 0.68
RunTestMethod · 0.68
RunTestMethod · 0.68
RunTestMethod · 0.68