(f, upValueCount int)
| 404 | } |
| 405 | |
| 406 | func (l *State) checkUpValue(f, upValueCount int) int { |
| 407 | n := CheckInteger(l, upValueCount) |
| 408 | CheckType(l, f, TypeFunction) |
| 409 | l.PushValue(f) |
| 410 | debug, _ := Info(l, ">u", nil) |
| 411 | ArgumentCheck(l, 1 <= n && n <= debug.UpValueCount, upValueCount, "invalue upvalue index") |
| 412 | return n |
| 413 | } |
| 414 | |
| 415 | func threadArg(l *State) (int, *State) { |
| 416 | if l.IsThread(1) { |
no test coverage detected