(ci *callInfo)
| 316 | } |
| 317 | |
| 318 | func (l *State) callHook(ci *callInfo) { |
| 319 | ci.savedPC++ // hooks assume 'pc' is already incremented |
| 320 | if pci := ci.previous; pci.isLua() && pci.code[pci.savedPC-1].opCode() == opTailCall { |
| 321 | ci.setCallStatus(callStatusTail) |
| 322 | l.hook(HookTailCall, -1) |
| 323 | } else { |
| 324 | l.hook(HookCall, -1) |
| 325 | } |
| 326 | ci.savedPC-- // correct 'pc' |
| 327 | } |
| 328 | |
| 329 | func (l *State) adjustVarArgs(p *prototype, argCount int) int { |
| 330 | fixedArgCount := p.parameterCount |
no test coverage detected