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

Function OptUnsigned

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

Source from the content-addressed store, hash-verified

370}
371
372func OptUnsigned(l *State, index int, def uint) uint {
373 if l.IsNoneOrNil(index) {
374 return def
375 }
376 return CheckUnsigned(l, index)
377}
378
379func TypeNameOf(l *State, index int) string { return l.TypeOf(index).String() }
380

Callers

nothing calls this directly

Calls 2

CheckUnsignedFunction · 0.85
IsNoneOrNilMethod · 0.80

Tested by

no test coverage detected