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

Method CallMeta

auxlib.go:337–346  ·  view source on GitHub ↗
(obj LValue, event string)

Source from the content-addressed store, hash-verified

335}
336
337func (ls *LState) CallMeta(obj LValue, event string) LValue {
338 op := ls.metaOp1(obj, event)
339 if op.Type() == LTFunction {
340 ls.reg.Push(op)
341 ls.reg.Push(obj)
342 ls.Call(1, 1)
343 return ls.reg.Pop()
344 }
345 return LNil
346}
347
348/* }}} */
349

Callers

nothing calls this directly

Calls 5

metaOp1Method · 0.95
CallMethod · 0.95
TypeMethod · 0.65
PushMethod · 0.65
PopMethod · 0.65

Tested by

no test coverage detected