MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / checkrepeated

Function checkrepeated

third-party/lua-5.5.0/src/lparser.c:1565–1570  ·  view source on GitHub ↗

** Check whether there is already a label with the given 'name' at ** current function. */

Source from the content-addressed store, hash-verified

1563** current function.
1564*/
1565static 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
1573static void labelstat (LexState *ls, TString *name, int line) {

Callers 1

labelstatFunction · 0.70

Calls 2

findlabelFunction · 0.70
luaK_semerrorFunction · 0.70

Tested by

no test coverage detected