** Generates an error that a goto jumps into the scope of some ** variable declaration. */
| 578 | ** variable declaration. |
| 579 | */ |
| 580 | static l_noret jumpscopeerror (LexState *ls, Labeldesc *gt) { |
| 581 | TString *tsname = getlocalvardesc(ls->fs, gt->nactvar)->vd.name; |
| 582 | const char *varname = (tsname != NULL) ? getstr(tsname) : "*"; |
| 583 | luaK_semerror(ls, |
| 584 | "<goto %s> at line %d jumps into the scope of '%s'", |
| 585 | getstr(gt->name), gt->line, varname); /* raise the error */ |
| 586 | } |
| 587 | |
| 588 | |
| 589 | /* |
no test coverage detected