MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / newlabelentry

Function newlabelentry

lib/lua/src/lparser.c:560–572  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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