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

Function searchupvalue

extlibs/lua/src/lparser.c:335–342  ·  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

333** with the given 'name'.
334*/
335static int searchupvalue (FuncState *fs, TString *name) {
336 int i;
337 Upvaldesc *up = fs->f->upvalues;
338 for (i = 0; i < fs->nups; i++) {
339 if (eqstr(up[i].name, name)) return i;
340 }
341 return -1; /* not found */
342}
343
344
345static Upvaldesc *allocupvalue (FuncState *fs) {

Callers 1

singlevarauxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected