MCPcopy
hub / github.com/yuin/gopher-lua / GetTop

Method GetTop

state.go:1454–1456  ·  view source on GitHub ↗

* registry operations {{{ */

()

Source from the content-addressed store, hash-verified

1452/* registry operations {{{ */
1453
1454func (ls *LState) GetTop() int {
1455 return ls.reg.Top() - ls.currentLocalBase()
1456}
1457
1458func (ls *LState) SetTop(idx int) {
1459 base := ls.currentLocalBase()

Callers 15

CheckAnyMethod · 0.95
PopMethod · 0.95
ResumeMethod · 0.95
XMoveToMethod · 0.95
osDateFunction · 0.45
osTimeFunction · 0.45
baseAssertFunction · 0.45
baseDoFileFunction · 0.45
baseGetFEnvFunction · 0.45
baseLoadFunction · 0.45
baseLoadFileFunction · 0.45
baseNextFunction · 0.45

Calls 2

currentLocalBaseMethod · 0.95
TopMethod · 0.45

Tested by 2

TestRemoveFunction · 0.36
TestPCallFunction · 0.36