MCPcopy Create free account
hub / github.com/Shopify/go-lua / upValue

Method upValue

stack.go:40–46  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

38}
39
40func (c *luaClosure) upValue(i int) value {
41 uv := c.upValues[i]
42 if home, ok := uv.home.(stackLocation); ok {
43 return home.state.stack[home.index]
44 }
45 return uv.home
46}
47
48func (c *luaClosure) setUpValue(i int, v value) {
49 uv := c.upValues[i]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected