(cp P, args ...LValue)
| 2101 | } |
| 2102 | |
| 2103 | func (ls *LState) CallByParam(cp P, args ...LValue) error { |
| 2104 | ls.Push(cp.Fn) |
| 2105 | for _, arg := range args { |
| 2106 | ls.Push(arg) |
| 2107 | } |
| 2108 | |
| 2109 | if cp.Protect { |
| 2110 | return ls.PCall(len(args), cp.NRet, cp.Handler) |
| 2111 | } |
| 2112 | ls.Call(len(args), cp.NRet) |
| 2113 | return nil |
| 2114 | } |
| 2115 | |
| 2116 | /* }}} */ |
| 2117 |