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

Method CheckFunction

auxlib.go:81–88  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

79}
80
81func (ls *LState) CheckFunction(n int) *LFunction {
82 v := ls.Get(n)
83 if lv, ok := v.(*LFunction); ok {
84 return lv
85 }
86 ls.TypeError(n, LTFunction)
87 return nil
88}
89
90func (ls *LState) CheckUserData(n int) *LUserData {
91 v := ls.Get(n)

Callers 7

baseLoadFunction · 0.80
baseXPCallFunction · 0.80
TestCheckFunctionFunction · 0.80
debugGetUpvalueFunction · 0.80
debugSetUpvalueFunction · 0.80
coCreateFunction · 0.80
tableSortFunction · 0.80

Calls 2

GetMethod · 0.95
TypeErrorMethod · 0.95

Tested by 1

TestCheckFunctionFunction · 0.64