* checkType {{{ */
(n int)
| 11 | /* checkType {{{ */ |
| 12 | |
| 13 | func (ls *LState) CheckAny(n int) LValue { |
| 14 | if n > ls.GetTop() { |
| 15 | ls.ArgError(n, "value expected") |
| 16 | } |
| 17 | return ls.Get(n) |
| 18 | } |
| 19 | |
| 20 | func (ls *LState) CheckInt(n int) int { |
| 21 | v := ls.Get(n) |
no test coverage detected