MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / newlabelentry

Function newlabelentry

xrepo/packages/l/lua/port/lua/src/lparser.c:559–571  ·  view source on GitHub ↗

** Adds a new label/goto in the corresponding list. */

Source from the content-addressed store, hash-verified

557** Adds a new label/goto in the corresponding list.
558*/
559static int newlabelentry (LexState *ls, Labellist *l, TString *name,
560 int line, int pc) {
561 int n = l->n;
562 luaM_growvector(ls->L, l->arr, n, l->size,
563 Labeldesc, SHRT_MAX, "labels/gotos");
564 l->arr[n].name = name;
565 l->arr[n].line = line;
566 l->arr[n].nactvar = ls->fs->nactvar;
567 l->arr[n].close = 0;
568 l->arr[n].pc = pc;
569 l->n = n + 1;
570 return n;
571}
572
573
574static int newgotoentry (LexState *ls, TString *name, int line, int pc) {

Callers 2

newgotoentryFunction · 0.85
createlabelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected