MCPcopy Index your code
hub / github.com/Shopify/go-lua / UpValueIndex

Function UpValueIndex

lua.go:1385–1385  ·  view source on GitHub ↗

UpValueIndex returns the pseudo-index that represents the i-th upvalue of the running function. http://www.lua.org/manual/5.2/manual.html#lua_upvalueindex

(i int)

Source from the content-addressed store, hash-verified

1383//
1384// http://www.lua.org/manual/5.2/manual.html#lua_upvalueindex
1385func UpValueIndex(i int) int { return RegistryIndex - i }
1386func isPseudoIndex(i int) bool { return i <= RegistryIndex }
1387
1388func apiCheckStackSpace(l *State, n int) { l.assert(n < l.top-l.callInfo.function) }

Callers 3

readLineFunction · 0.85
findLoaderFunction · 0.85
findFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected