MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / localdebuginfo

Function localdebuginfo

3rd/lua-5.4.3/src/lparser.c:251–260  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

249** Get the debug-information entry for current variable 'vidx'.
250*/
251static 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/*

Callers 2

removevarsFunction · 0.85
localfuncFunction · 0.85

Calls 1

getlocalvardescFunction · 0.85

Tested by

no test coverage detected