MCPcopy Create free account
hub / github.com/F-Stack/f-stack / searchvar

Function searchvar

freebsd/contrib/openzfs/module/lua/lparser.c:244–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

singlevarauxFunction · 0.70

Calls 2

luaS_eqstrFunction · 0.85
getlocvarFunction · 0.85

Tested by

no test coverage detected