CheckAny checks whether the function has an argument of any type (including nil) at position index.
(l *State, index int)
| 299 | |
| 300 | // CheckAny checks whether the function has an argument of any type (including nil) at position index. |
| 301 | func CheckAny(l *State, index int) { |
| 302 | if l.TypeOf(index) == TypeNone { |
| 303 | ArgumentError(l, index, "value expected") |
| 304 | } |
| 305 | } |
| 306 | |
| 307 | // ArgumentCheck checks whether cond is true. If not, raises an error with a standard message. |
| 308 | func ArgumentCheck(l *State, cond bool, index int, extraMessage string) { |
no test coverage detected