(l *State, index int)
| 332 | } |
| 333 | |
| 334 | func CheckNumber(l *State, index int) float64 { |
| 335 | n, ok := l.ToNumber(index) |
| 336 | if !ok { |
| 337 | tagError(l, index, TypeNumber) |
| 338 | } |
| 339 | return n |
| 340 | } |
| 341 | |
| 342 | func OptNumber(l *State, index int, def float64) float64 { |
| 343 | if l.IsNoneOrNil(index) { |
no test coverage detected