(fn LGFunction, data LValue)
| 2095 | } |
| 2096 | |
| 2097 | func (ls *LState) GPCall(fn LGFunction, data LValue) error { |
| 2098 | ls.Push(newLFunctionG(fn, ls.currentEnv(), 0)) |
| 2099 | ls.Push(data) |
| 2100 | return ls.PCall(1, MultRet, nil) |
| 2101 | } |
| 2102 | |
| 2103 | func (ls *LState) CallByParam(cp P, args ...LValue) error { |
| 2104 | ls.Push(cp.Fn) |