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

Function CheckStackWithMessage

auxiliary.go:394–403  ·  view source on GitHub ↗
(l *State, space int, message string)

Source from the content-addressed store, hash-verified

392}
393
394func CheckStackWithMessage(l *State, space int, message string) {
395 // keep some extra space to run error routines, if needed
396 if !l.CheckStack(space + MinStack) {
397 if message != "" {
398 Errorf(l, "stack overflow (%s)", message)
399 } else {
400 Errorf(l, "stack overflow")
401 }
402 }
403}
404
405func CheckOption(l *State, index int, def string, list []string) int {
406 var name string

Callers 3

ReadMethod · 0.85
string.goFile · 0.85
SetFunctionsFunction · 0.85

Calls 2

ErrorfFunction · 0.85
CheckStackMethod · 0.45

Tested by

no test coverage detected