** Close the scope for all variables up to level 'tolevel'. ** (debug info.) */
| 344 | ** (debug info.) |
| 345 | */ |
| 346 | static void removevars (FuncState *fs, int tolevel) { |
| 347 | fs->ls->dyd->actvar.n -= (fs->nactvar - tolevel); |
| 348 | while (fs->nactvar > tolevel) { |
| 349 | LocVar *var = localdebuginfo(fs, --fs->nactvar); |
| 350 | if (var) /* does it have debug information? */ |
| 351 | var->endpc = fs->pc; |
| 352 | } |
| 353 | } |
| 354 | |
| 355 | |
| 356 | /* |
no test coverage detected