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

Function searchupvalue

third-party/lua-5.5.0/src/lparser.c:360–367  ·  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

358** with the given 'name'.
359*/
360static int searchupvalue (FuncState *fs, TString *name) {
361 int i;
362 Upvaldesc *up = fs->f->upvalues;
363 for (i = 0; i < fs->nups; i++) {
364 if (eqstr(up[i].name, name)) return i;
365 }
366 return -1; /* not found */
367}
368
369
370static Upvaldesc *allocupvalue (FuncState *fs) {

Callers 1

singlevarauxFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected