** Generates an error that a goto jumps into the scope of some ** local variable. */
| 511 | ** local variable. |
| 512 | */ |
| 513 | static l_noret jumpscopeerror (LexState *ls, Labeldesc *gt) { |
| 514 | const char *varname = getstr(getlocalvardesc(ls->fs, gt->nactvar)->vd.name); |
| 515 | const char *msg = "<goto %s> at line %d jumps into the scope of local '%s'"; |
| 516 | msg = luaO_pushfstring(ls->L, msg, getstr(gt->name), gt->line, varname); |
| 517 | luaK_semerror(ls, msg); /* raise the error */ |
| 518 | } |
| 519 | |
| 520 | |
| 521 | /* |
no test coverage detected