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

Function DEFINE_FUNCTION

Plugins/UnLua/Source/UnLua/Private/LuaFunction.cpp:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48DEFINE_FUNCTION(ULuaFunction::execCallLua)
49{
50 const auto LuaFunction = Cast<ULuaFunction>(Stack.CurrentNativeFunction);
51 const auto Env = IUnLuaModule::Get().GetEnv(Context);
52 if (!Env)
53 {
54 // PIE 结束时可能已经没有Lua环境了
55 return;
56 }
57 Env->GetFunctionRegistry()->Invoke(LuaFunction, Context, Stack, RESULT_PARAM);
58}
59
60bool ULuaFunction::IsOverridable(const UFunction* Function)
61{

Callers

nothing calls this directly

Calls 3

GetFunction · 0.50
GetEnvMethod · 0.45
InvokeMethod · 0.45

Tested by

no test coverage detected