MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / searchvar

Function searchvar

Source/Misc/lua/src/lua.c:7783–7790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7781
7782
7783static int searchvar (FuncState *fs, TString *n) {
7784int i;
7785for (i=fs->nactvar-1; i >= 0; i--) {
7786if (n == getlocvar(fs, i).varname)
7787return i;
7788}
7789return -1; /* not found */
7790}
7791
7792
7793static void markupval (FuncState *fs, int level) {

Callers 1

singlevarauxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected