| 265 | |
| 266 | |
| 267 | static 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 | /* |
no test coverage detected