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

Function intPairs

base.go:40–50  ·  view source on GitHub ↗
(l *State)

Source from the content-addressed store, hash-verified

38}
39
40func intPairs(l *State) int {
41 i := CheckInteger(l, 2)
42 CheckType(l, 1, TypeTable)
43 i++ // next value
44 l.PushInteger(i)
45 l.RawGetInt(1, i)
46 if l.IsNil(-1) {
47 return 1
48 }
49 return 2
50}
51
52func finishProtectedCall(l *State, status bool) int {
53 if !l.CheckStack(1) {

Callers

nothing calls this directly

Calls 5

CheckIntegerFunction · 0.85
CheckTypeFunction · 0.85
PushIntegerMethod · 0.80
RawGetIntMethod · 0.80
IsNilMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…