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

Function searchvar

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

Source from the content-addressed store, hash-verified

244
245
246static int searchvar (FuncState *fs, TString *n) {
247 int i;
248 for (i = cast_int(fs->nactvar) - 1; i >= 0; i--) {
249 if (luaS_eqstr(n, getlocvar(fs, i)->varname))
250 return i;
251 }
252 return -1; /* not found */
253}
254
255
256/*

Callers 1

singlevarauxFunction · 0.70

Calls 2

luaS_eqstrFunction · 0.70
getlocvarFunction · 0.70

Tested by

no test coverage detected