ArgumentCheck checks whether cond is true. If not, raises an error with a standard message.
(l *State, cond bool, index int, extraMessage string)
| 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) { |
| 309 | if !cond { |
| 310 | ArgumentError(l, index, extraMessage) |
| 311 | } |
| 312 | } |
| 313 | |
| 314 | // CheckString checks whether the function argument at index is a string and returns this string. |
| 315 | // |
no test coverage detected