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

Method ToTable

state.go:1692–1697  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

1690}
1691
1692func (ls *LState) ToTable(n int) *LTable {
1693 if lv, ok := ls.Get(n).(*LTable); ok {
1694 return lv
1695 }
1696 return nil
1697}
1698
1699func (ls *LState) ToFunction(n int) *LFunction {
1700 if lv, ok := ls.Get(n).(*LFunction); ok {

Callers 3

TestToTableFunction · 0.45

Calls 1

GetMethod · 0.95

Tested by 3

TestToTableFunction · 0.36