MCPcopy Create free account
hub / github.com/DFHack/dfhack / searchupvalue

Function searchupvalue

depends/lua/src/lparser.c:218–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

singlevarauxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected