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

Function newlabelentry

extlibs/lua/src/lparser.c:542–554  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

540** Adds a new label/goto in the corresponding list.
541*/
542static int newlabelentry (LexState *ls, Labellist *l, TString *name,
543 int line, int pc) {
544 int n = l->n;
545 luaM_growvector(ls->L, l->arr, n, l->size,
546 Labeldesc, SHRT_MAX, "labels/gotos");
547 l->arr[n].name = name;
548 l->arr[n].line = line;
549 l->arr[n].nactvar = ls->fs->nactvar;
550 l->arr[n].close = 0;
551 l->arr[n].pc = pc;
552 l->n = n + 1;
553 return n;
554}
555
556
557static 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