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