MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / findlabel

Function findlabel

third-party/lua-5.5.0/src/lparser.c:626–634  ·  view source on GitHub ↗

** Search for an active label with the given name, starting at ** index 'ilb' (so that it can search for all labels in current block ** or all labels in current function). */

Source from the content-addressed store, hash-verified

624** or all labels in current function).
625*/
626static Labeldesc *findlabel (LexState *ls, TString *name, int ilb) {
627 Dyndata *dyd = ls->dyd;
628 for (; ilb < dyd->label.n; ilb++) {
629 Labeldesc *lb = &dyd->label.arr[ilb];
630 if (eqstr(lb->name, name)) /* correct label? */
631 return lb;
632 }
633 return NULL; /* label not found */
634}
635
636
637/*

Callers 2

solvegotosFunction · 0.70
checkrepeatedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected