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

Function newlabelentry

third-party/lua-5.2.4/src/lparser.c:384–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382
383
384static int newlabelentry (LexState *ls, Labellist *l, TString *name,
385 int line, int pc) {
386 int n = l->n;
387 luaM_growvector(ls->L, l->arr, n, l->size,
388 Labeldesc, SHRT_MAX, "labels/gotos");
389 l->arr[n].name = name;
390 l->arr[n].line = line;
391 l->arr[n].nactvar = ls->fs->nactvar;
392 l->arr[n].pc = pc;
393 l->n++;
394 return n;
395}
396
397
398/*

Callers 3

breaklabelFunction · 0.70
gotostatFunction · 0.70
labelstatFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected