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

Method metaCall

_state.go:926–934  ·  view source on GitHub ↗
(lvalue LValue)

Source from the content-addressed store, hash-verified

924}
925
926func (ls *LState) metaCall(lvalue LValue) (*LFunction, bool) {
927 if fn, ok := lvalue.(*LFunction); ok {
928 return fn, false
929 }
930 if fn, ok := ls.metaOp1(lvalue, "__call").(*LFunction); ok {
931 return fn, true
932 }
933 return nil, false
934}
935
936func (ls *LState) initCallFrame(cf *callFrame) { // +inline-start
937 if cf.Fn.IsG {

Callers 1

callRMethod · 0.95

Calls 1

metaOp1Method · 0.95

Tested by

no test coverage detected