MCPcopy Index your code
hub / github.com/Shopify/go-lua / checkStack

Method checkStack

stack.go:449–453  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

447}
448
449func (l *State) checkStack(n int) {
450 if l.stackLast-l.top <= n {
451 l.growStack(n)
452 }
453}
454
455func (l *State) reallocStack(newSize int) {
456 l.assert(newSize <= maxStack || newSize == errorStackSize)

Callers 6

PushFStringMethod · 0.95
executeSwitchMethod · 0.95
callGoMethod · 0.95
preCallMethod · 0.95
hookMethod · 0.95
initFunction · 0.80

Calls 1

growStackMethod · 0.95

Tested by

no test coverage detected