(i int, v value)
| 46 | } |
| 47 | |
| 48 | func (c *luaClosure) setUpValue(i int, v value) { |
| 49 | uv := c.upValues[i] |
| 50 | if home, ok := uv.home.(stackLocation); ok { |
| 51 | home.state.stack[home.index] = v |
| 52 | } else { |
| 53 | uv.home = v |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | func (c *luaClosure) upValueCount() int { return len(c.upValues) } |
| 58 | func (c *goClosure) upValue(i int) value { return c.upValues[i] } |
nothing calls this directly
no outgoing calls
no test coverage detected