** generates an error for an undefined 'goto'. */
| 735 | ** generates an error for an undefined 'goto'. |
| 736 | */ |
| 737 | static l_noret undefgoto (LexState *ls, Labeldesc *gt) { |
| 738 | /* breaks are checked when created, cannot be undefined */ |
| 739 | lua_assert(!eqstr(gt->name, ls->brkn)); |
| 740 | luaK_semerror(ls, "no visible label '%s' for <goto> at line %d", |
| 741 | getstr(gt->name), gt->line); |
| 742 | } |
| 743 | |
| 744 | |
| 745 | static void leaveblock (FuncState *fs) { |
no test coverage detected