MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / searchupvalue

Function searchupvalue

src/Chain/libraries/glua/lparser.cpp:242–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240
241
242static int searchupvalue(FuncState *fs, TString *name) {
243 int i;
244 Upvaldesc *up = fs->f->upvalues;
245 for (i = 0; i < fs->nups; i++) {
246 if (eqstr(up[i].name, name)) return i;
247 }
248 return -1; /* not found */
249}
250
251
252static int newupvalue(FuncState *fs, TString *name, expdesc *v) {

Callers 1

singlevarauxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected