MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / localdebuginfo

Function localdebuginfo

third-party/lua-5.5.0/src/lparser.c:258–267  ·  view source on GitHub ↗

** Get the debug-information entry for current variable 'vidx'. */

Source from the content-addressed store, hash-verified

256** Get the debug-information entry for current variable 'vidx'.
257*/
258static 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/*

Callers 2

removevarsFunction · 0.70
localfuncFunction · 0.70

Calls 1

getlocalvardescFunction · 0.70

Tested by

no test coverage detected