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

Method CheckTable

auxlib.go:72–79  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

70}
71
72func (ls *LState) CheckTable(n int) *LTable {
73 v := ls.Get(n)
74 if lv, ok := v.(*LTable); ok {
75 return lv
76 }
77 ls.TypeError(n, LTTable)
78 return nil
79}
80
81func (ls *LState) CheckFunction(n int) *LFunction {
82 v := ls.Get(n)

Callers 15

loSeeAllFunction · 0.80
ipairsauxFunction · 0.80
baseIpairsFunction · 0.80
baseNextFunction · 0.80
pairsauxFunction · 0.80
basePairsFunction · 0.80
baseRawGetFunction · 0.80
baseRawSetFunction · 0.80
baseSetFEnvFunction · 0.80
baseUnpackFunction · 0.80
TestCheckTableFunction · 0.80
tableSortFunction · 0.80

Calls 2

GetMethod · 0.95
TypeErrorMethod · 0.95

Tested by 2

TestCheckTableFunction · 0.64
TestObjLenFunction · 0.64