** Close the scope for all variables up to level 'tolevel'. ** (debug info.) */
| 319 | ** (debug info.) |
| 320 | */ |
| 321 | static void removevars (FuncState *fs, int tolevel) { |
| 322 | fs->ls->dyd->actvar.n -= (fs->nactvar - tolevel); |
| 323 | while (fs->nactvar > tolevel) { |
| 324 | LocVar *var = localdebuginfo(fs, --fs->nactvar); |
| 325 | if (var) /* does it have debug information? */ |
| 326 | var->endpc = fs->pc; |
| 327 | } |
| 328 | } |
| 329 | |
| 330 | |
| 331 | /* |
no test coverage detected