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

Function findlabel

extlibs/lua/src/lparser.c:526–536  ·  view source on GitHub ↗

** Search for an active label with the given name. */

Source from the content-addressed store, hash-verified

524** Search for an active label with the given name.
525*/
526static Labeldesc *findlabel (LexState *ls, TString *name) {
527 int i;
528 Dyndata *dyd = ls->dyd;
529 /* check labels in current function for a match */
530 for (i = ls->fs->firstlabel; i < dyd->label.n; i++) {
531 Labeldesc *lb = &dyd->label.arr[i];
532 if (eqstr(lb->name, name)) /* correct label? */
533 return lb;
534 }
535 return NULL; /* label not found */
536}
537
538
539/*

Callers 3

gotostatFunction · 0.85
checkrepeatedFunction · 0.85
issinglejumpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected