(f LValue, args ...LValue)
| 178 | } |
| 179 | |
| 180 | func (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 | |
| 191 | func (this *LuaRuntime) GetGlobal(f string) LValue { |
| 192 | return this.lua.GetGlobal(f) |