MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / searchvar

Function searchvar

lua/lparser.c:238–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236
237
238static int searchvar (FuncState *fs, TString *n) {
239 int i;
240 for (i=fs->nactvar-1; i >= 0; i--) {
241 if (n == getlocvar(fs, i).varname)
242 return i;
243 }
244 return -1; /* not found */
245}
246
247
248static void markupval (FuncState *fs, int level) {

Callers 1

singlevarauxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected