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

Function searchupvalue

third-party/lua-5.2.4/src/lparser.c:221–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

singlevarauxFunction · 0.70

Calls 1

luaS_eqstrFunction · 0.70

Tested by

no test coverage detected