(l *State, index int, def float64)
| 340 | } |
| 341 | |
| 342 | func OptNumber(l *State, index int, def float64) float64 { |
| 343 | if l.IsNoneOrNil(index) { |
| 344 | return def |
| 345 | } |
| 346 | return CheckNumber(l, index) |
| 347 | } |
| 348 | |
| 349 | func CheckInteger(l *State, index int) int { |
| 350 | i, ok := l.ToInteger(index) |
no test coverage detected