Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1454
func
(ls *LState) GetTop() int {
1455
return
ls.reg.Top() - ls.currentLocalBase()
1456
}
1457
1458
func
(ls *LState) SetTop(idx int) {
1459
base := ls.currentLocalBase()
Callers
15
CheckAny
Method · 0.95
Pop
Method · 0.95
Resume
Method · 0.95
XMoveTo
Method · 0.95
osDate
Function · 0.45
osTime
Function · 0.45
baseAssert
Function · 0.45
baseDoFile
Function · 0.45
baseGetFEnv
Function · 0.45
baseLoad
Function · 0.45
baseLoadFile
Function · 0.45
baseNext
Function · 0.45
Calls
2
currentLocalBase
Method · 0.95
Top
Method · 0.45
Tested by
2
TestRemove
Function · 0.36
TestPCall
Function · 0.36