MCPcopy Index your code
hub / github.com/Cyinx/einx / PCall3

Method PCall3

lua/lua_state.go:180–189  ·  view source on GitHub ↗
(f LValue, args ...LValue)

Source from the content-addressed store, hash-verified

178}
179
180func (this *LuaRuntime) PCall3(f LValue, args ...LValue) {
181 l := this.lua
182 l.Push(f)
183 for _, arg := range args {
184 l.Push(arg)
185 }
186 if err := l.PCall(len(args), -1, nil); err != nil {
187 slog.LogError("lua", "lua pcall3 err:%v", err)
188 }
189}
190
191func (this *LuaRuntime) GetGlobal(f string) LValue {
192 return this.lua.GetGlobal(f)

Callers

nothing calls this directly

Calls 2

PCallMethod · 0.80
PushMethod · 0.45

Tested by

no test coverage detected