MCPcopy Index your code
hub / github.com/yuin/gopher-lua / CallByParam

Method CallByParam

state.go:2103–2114  ·  view source on GitHub ↗
(cp P, args ...LValue)

Source from the content-addressed store, hash-verified

2101}
2102
2103func (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

Calls 3

PushMethod · 0.95
PCallMethod · 0.95
CallMethod · 0.95

Tested by 2