(l *State, index int)
| 347 | } |
| 348 | |
| 349 | func CheckInteger(l *State, index int) int { |
| 350 | i, ok := l.ToInteger(index) |
| 351 | if !ok { |
| 352 | tagError(l, index, TypeNumber) |
| 353 | } |
| 354 | return i |
| 355 | } |
| 356 | |
| 357 | func OptInteger(l *State, index, def int) int { |
| 358 | if l.IsNoneOrNil(index) { |