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

Method close

stack.go:70–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70func (uv *upValue) close() {
71 if home, ok := uv.home.(stackLocation); ok {
72 uv.home = home.state.stack[home.index]
73 } else {
74 panic("attempt to close already-closed up value")
75 }
76}
77
78func (uv *upValue) isInStackAt(level int) bool {
79 if home, ok := uv.home.(stackLocation); ok {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected