(l *State, space int, message string)
| 392 | } |
| 393 | |
| 394 | func 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 | |
| 405 | func CheckOption(l *State, index int, def string, list []string) int { |
| 406 | var name string |
no test coverage detected