** Get the debug-information entry for current variable 'vidx'. */
| 256 | ** Get the debug-information entry for current variable 'vidx'. |
| 257 | */ |
| 258 | static LocVar *localdebuginfo (FuncState *fs, int vidx) { |
| 259 | Vardesc *vd = getlocalvardesc(fs, vidx); |
| 260 | if (!varinreg(vd)) |
| 261 | return NULL; /* no debug info. for constants */ |
| 262 | else { |
| 263 | int idx = vd->vd.pidx; |
| 264 | lua_assert(idx < fs->ndebugvars); |
| 265 | return &fs->f->locvars[idx]; |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | |
| 270 | /* |
no test coverage detected