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

Method checkResults

lua.go:310–314  ·  view source on GitHub ↗
(argCount, resultCount int)

Source from the content-addressed store, hash-verified

308}
309
310func (l *State) checkResults(argCount, resultCount int) {
311 if apiCheck && resultCount != MultipleReturns && l.callInfo.top-l.top < resultCount-argCount {
312 panic("results from function overflow current stack size")
313 }
314}
315
316// Context is called by a continuation function to retrieve the status of the
317// thread and context information. When called in the origin function, it

Callers 2

CallWithContinuationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected