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

Function lines

io.go:163–173  ·  view source on GitHub ↗
(l *State, shouldClose bool)

Source from the content-addressed store, hash-verified

161}
162
163func lines(l *State, shouldClose bool) {
164 argCount := l.Top() - 1
165 ArgumentCheck(l, argCount <= MinStack-3, MinStack-3, "too many options")
166 l.PushValue(1)
167 l.PushInteger(argCount)
168 l.PushBoolean(shouldClose)
169 for i := 1; i <= argCount; i++ {
170 l.PushValue(i + 1)
171 }
172 l.PushGoClosure(readLine, uint8(3+argCount))
173}
174
175func flags(m string) (f int, err error) {
176 if len(m) > 0 && m[len(m)-1] == 'b' {

Callers 1

io.goFile · 0.85

Calls 6

ArgumentCheckFunction · 0.85
TopMethod · 0.80
PushValueMethod · 0.80
PushIntegerMethod · 0.80
PushBooleanMethod · 0.80
PushGoClosureMethod · 0.80

Tested by

no test coverage detected