MCPcopy Create free account
hub / github.com/F-Stack/f-stack / searchupvalue

Function searchupvalue

freebsd/contrib/openzfs/module/lua/lparser.c:219–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217
218
219static int searchupvalue (FuncState *fs, TString *name) {
220 int i;
221 Upvaldesc *up = fs->f->upvalues;
222 for (i = 0; i < fs->nups; i++) {
223 if (luaS_eqstr(up[i].name, name)) return i;
224 }
225 return -1; /* not found */
226}
227
228
229static int newupvalue (FuncState *fs, TString *name, expdesc *v) {

Callers 1

singlevarauxFunction · 0.85

Calls 1

luaS_eqstrFunction · 0.85

Tested by

no test coverage detected