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

Function searchupvalue

third-party/lua-5.4.6/src/lparser.c:342–349  ·  view source on GitHub ↗

** Search the upvalues of the function 'fs' for one ** with the given 'name'. */

Source from the content-addressed store, hash-verified

340** with the given 'name'.
341*/
342static int searchupvalue (FuncState *fs, TString *name) {
343 int i;
344 Upvaldesc *up = fs->f->upvalues;
345 for (i = 0; i < fs->nups; i++) {
346 if (eqstr(up[i].name, name)) return i;
347 }
348 return -1; /* not found */
349}
350
351
352static Upvaldesc *allocupvalue (FuncState *fs) {

Callers 1

singlevarauxFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected