** Check whether there is already a label with the given 'name' at ** current function. */
| 1563 | ** current function. |
| 1564 | */ |
| 1565 | static void checkrepeated (LexState *ls, TString *name) { |
| 1566 | Labeldesc *lb = findlabel(ls, name, ls->fs->firstlabel); |
| 1567 | if (l_unlikely(lb != NULL)) /* already defined? */ |
| 1568 | luaK_semerror(ls, "label '%s' already defined on line %d", |
| 1569 | getstr(name), lb->line); /* error */ |
| 1570 | } |
| 1571 | |
| 1572 | |
| 1573 | static void labelstat (LexState *ls, TString *name, int line) { |
no test coverage detected