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

Function CheckUnsigned

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

Source from the content-addressed store, hash-verified

362}
363
364func CheckUnsigned(l *State, index int) uint {
365 i, ok := l.ToUnsigned(index)
366 if !ok {
367 tagError(l, index, TypeNumber)
368 }
369 return i
370}
371
372func OptUnsigned(l *State, index int, def uint) uint {
373 if l.IsNoneOrNil(index) {

Callers 5

rotateFunction · 0.85
bitOpFunction · 0.85
bit32.goFile · 0.85
math.goFile · 0.85
OptUnsignedFunction · 0.85

Calls 2

tagErrorFunction · 0.85
ToUnsignedMethod · 0.80

Tested by

no test coverage detected