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

Method checkElementCount

lua.go:304–308  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

302}
303
304func (l *State) checkElementCount(n int) {
305 if apiCheck && n >= l.top-l.callInfo.function {
306 panic("not enough elements in the stack")
307 }
308}
309
310func (l *State) checkResults(argCount, resultCount int) {
311 if apiCheck && resultCount != MultipleReturns && l.callInfo.top-l.top < resultCount-argCount {

Callers 15

CallWithContinuationMethod · 0.95
DumpMethod · 0.95
SetFieldMethod · 0.95
ReplaceMethod · 0.95
ArithMethod · 0.95
PushGoClosureMethod · 0.95
SetGlobalMethod · 0.95
SetTableMethod · 0.95
RawSetMethod · 0.95
RawSetIntMethod · 0.95
SetUserValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected