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

Method frameIndex

stack.go:158–163  ·  view source on GitHub ↗
(stackSlot int)

Source from the content-addressed store, hash-verified

156}
157
158func (ci *callInfo) frameIndex(stackSlot int) int {
159 if stackSlot < ci.top-len(ci.frame) || ci.top <= stackSlot {
160 panic("frameIndex called with out-of-range stackSlot")
161 }
162 return stackSlot - ci.top + len(ci.frame)
163}
164
165func (l *State) pushLuaFrame(function, base, resultCount int, p *prototype) *callInfo {
166 ci := l.callInfo.next

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected