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

Function newlabelentry

depends/lua/src/lparser.c:385–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

breaklabelFunction · 0.85
gotostatFunction · 0.85
labelstatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected