MCPcopy Create free account
hub / github.com/DFHack/dfhack / breaklabel

Function breaklabel

depends/lua/src/lparser.c:454–458  ·  view source on GitHub ↗

** create a label named 'break' to resolve break statements */

Source from the content-addressed store, hash-verified

452** create a label named 'break' to resolve break statements
453*/
454static void breaklabel (LexState *ls) {
455 TString *n = luaS_new(ls->L, "break");
456 int l = newlabelentry(ls, &ls->dyd->label, n, 0, ls->fs->pc);
457 findgotos(ls, &ls->dyd->label.arr[l]);
458}
459
460/*
461** generates an error for an undefined 'goto'; choose appropriate

Callers 1

leaveblockFunction · 0.85

Calls 3

luaS_newFunction · 0.85
newlabelentryFunction · 0.85
findgotosFunction · 0.85

Tested by

no test coverage detected