** Get the debug-information entry for current variable 'vidx'. */
| 249 | ** Get the debug-information entry for current variable 'vidx'. |
| 250 | */ |
| 251 | static LocVar *localdebuginfo (FuncState *fs, int vidx) { |
| 252 | Vardesc *vd = getlocalvardesc(fs, vidx); |
| 253 | if (vd->vd.kind == RDKCTC) |
| 254 | return NULL; /* no debug info. for constants */ |
| 255 | else { |
| 256 | int idx = vd->vd.pidx; |
| 257 | lua_assert(idx < fs->ndebugvars); |
| 258 | return &fs->f->locvars[idx]; |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | |
| 263 | /* |
no test coverage detected