MCPcopy Create free account
hub / github.com/yuin/gopher-lua / CallByParam

Method CallByParam

_state.go:1890–1901  ·  view source on GitHub ↗
(cp P, args ...LValue)

Source from the content-addressed store, hash-verified

1888}
1889
1890func (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

Callers

nothing calls this directly

Calls 3

PushMethod · 0.95
PCallMethod · 0.95
CallMethod · 0.95

Tested by

no test coverage detected