(f string, args ...LValue)
| 167 | } |
| 168 | |
| 169 | func (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 | |
| 180 | func (this *LuaRuntime) PCall3(f LValue, args ...LValue) { |
| 181 | l := this.lua |