MCPcopy Index your code
hub / github.com/yuin/gopher-lua / autoGrowingCallFrameStack

Struct autoGrowingCallFrameStack

state.go:224–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223type segIdx uint16
224type autoGrowingCallFrameStack struct {
225 segments []*callFrameStackSegment
226 segIdx segIdx
227 // segSp is the number of frames in the current segment which are used. Full 'sp' value is segIdx * FramesPerSegment + segSp.
228 // It points to the next stack slot to use, so 0 means to use the 0th element in the segment, and a value of
229 // FramesPerSegment indicates that the segment is full and cannot accommodate another frame.
230 segSp uint8
231}
232
233var segmentPool sync.Pool
234

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected