MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / searchvar

Function searchvar

deps/lua/src/lparser.c:207–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205
206
207static int searchvar (FuncState *fs, TString *n) {
208 int i;
209 for (i=fs->nactvar-1; i >= 0; i--) {
210 if (n == getlocvar(fs, i).varname)
211 return i;
212 }
213 return -1; /* not found */
214}
215
216
217static void markupval (FuncState *fs, int level) {

Callers 1

singlevarauxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected