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

Method GetTop

_state.go:1241–1243  ·  view source on GitHub ↗

* registry operations {{{ */

()

Source from the content-addressed store, hash-verified

1239/* registry operations {{{ */
1240
1241func (ls *LState) GetTop() int {
1242 return ls.reg.Top() - ls.currentLocalBase()
1243}
1244
1245func (ls *LState) SetTop(idx int) {
1246 base := ls.currentLocalBase()

Callers 3

PopMethod · 0.95
ResumeMethod · 0.95
XMoveToMethod · 0.95

Calls 2

currentLocalBaseMethod · 0.95
TopMethod · 0.45

Tested by

no test coverage detected