| 46 | } |
| 47 | |
| 48 | DEFINE_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 | |
| 60 | bool ULuaFunction::IsOverridable(const UFunction* Function) |
| 61 | { |