(l *State, shouldClose bool)
| 161 | } |
| 162 | |
| 163 | func 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 | |
| 175 | func flags(m string) (f int, err error) { |
| 176 | if len(m) > 0 && m[len(m)-1] == 'b' { |
no test coverage detected