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

Function searchvar

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

Source from the content-addressed store, hash-verified

265
266
267static int searchvar(FuncState *fs, TString *n) {
268 int i;
269 for (i = cast_int(fs->nactvar) - 1; i >= 0; i--) {
270 if (eqstr(n, getlocvar(fs, i)->varname))
271 return i;
272 }
273 return -1; /* not found */
274}
275
276
277/*

Callers 1

singlevarauxFunction · 0.85

Calls 1

getlocvarFunction · 0.85

Tested by

no test coverage detected