MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / localdebuginfo

Function localdebuginfo

extlibs/lua/src/lparser.c:250–259  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

248** Get the debug-information entry for current variable 'i'.
249*/
250static 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
262static void init_var (FuncState *fs, expdesc *e, int i) {

Callers 2

removevarsFunction · 0.85
localfuncFunction · 0.85

Calls 1

getlocalvardescFunction · 0.85

Tested by

no test coverage detected