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

Function OptInteger

auxiliary.go:357–362  ·  view source on GitHub ↗
(l *State, index, def int)

Source from the content-addressed store, hash-verified

355}
356
357func OptInteger(l *State, index, def int) int {
358 if l.IsNoneOrNil(index) {
359 return def
360 }
361 return CheckInteger(l, index)
362}
363
364func CheckUnsigned(l *State, index int) uint {
365 i, ok := l.ToUnsigned(index)

Callers 7

fieldArgumentsFunction · 0.85
debug.goFile · 0.85
base.goFile · 0.85
findHelperFunction · 0.85
string.goFile · 0.85
table.goFile · 0.85
os.goFile · 0.85

Calls 2

CheckIntegerFunction · 0.85
IsNoneOrNilMethod · 0.80

Tested by

no test coverage detected