(cp P, args ...LValue)
| 1888 | } |
| 1889 | |
| 1890 | func (ls *LState) CallByParam(cp P, args ...LValue) error { |
| 1891 | ls.Push(cp.Fn) |
| 1892 | for _, arg := range args { |
| 1893 | ls.Push(arg) |
| 1894 | } |
| 1895 | |
| 1896 | if cp.Protect { |
| 1897 | return ls.PCall(len(args), cp.NRet, cp.Handler) |
| 1898 | } |
| 1899 | ls.Call(len(args), cp.NRet) |
| 1900 | return nil |
| 1901 | } |
| 1902 | |
| 1903 | /* }}} */ |
| 1904 |