MCPcopy Index your code
hub / github.com/Shopify/go-lua / CheckInteger

Function CheckInteger

auxiliary.go:349–355  ·  view source on GitHub ↗
(l *State, index int)

Source from the content-addressed store, hash-verified

347}
348
349func 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
357func OptInteger(l *State, index, def int) int {
358 if l.IsNoneOrNil(index) {

Callers 12

fieldArgumentsFunction · 0.85
bit32.goFile · 0.85
upValueHelperFunction · 0.85
checkUpValueMethod · 0.85
intPairsFunction · 0.85
base.goFile · 0.85
formatHelperFunction · 0.85
string.goFile · 0.85
TestTableNextFunction · 0.85
table.goFile · 0.85
math.goFile · 0.85
OptIntegerFunction · 0.85

Calls 2

tagErrorFunction · 0.85
ToIntegerMethod · 0.80

Tested by 1

TestTableNextFunction · 0.68