** Generates an error that a goto jumps into the scope of some ** local variable. */
| 500 | ** local variable. |
| 501 | */ |
| 502 | static l_noret jumpscopeerror (LexState *ls, Labeldesc *gt) { |
| 503 | const char *varname = getstr(getlocalvardesc(ls->fs, gt->nactvar)->vd.name); |
| 504 | const char *msg = "<goto %s> at line %d jumps into the scope of local '%s'"; |
| 505 | msg = luaO_pushfstring(ls->L, msg, getstr(gt->name), gt->line, varname); |
| 506 | luaK_semerror(ls, msg); /* raise the error */ |
| 507 | } |
| 508 | |
| 509 | |
| 510 | /* |
no test coverage detected