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

Method PCall2

lua/lua_state.go:169–178  ·  view source on GitHub ↗
(f string, args ...LValue)

Source from the content-addressed store, hash-verified

167}
168
169func (this *LuaRuntime) PCall2(f string, args ...LValue) {
170 l := this.lua
171 l.Push(l.GetGlobal(f))
172 for _, arg := range args {
173 l.Push(arg)
174 }
175 if err := l.PCall(len(args), -1, nil); err != nil {
176 slog.LogError("lua", "lua pcall2 err:%v", err)
177 }
178}
179
180func (this *LuaRuntime) PCall3(f LValue, args ...LValue) {
181 l := this.lua

Callers

nothing calls this directly

Calls 3

GetGlobalMethod · 0.80
PCallMethod · 0.80
PushMethod · 0.45

Tested by

no test coverage detected