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

Function LoadDebug

third-party/lua-5.3.5/src/lundump.c:180–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178
179
180static void LoadDebug (LoadState *S, Proto *f) {
181 int i, n;
182 n = LoadInt(S);
183 f->lineinfo = luaM_newvector(S->L, n, int);
184 f->sizelineinfo = n;
185 LoadVector(S, f->lineinfo, n);
186 n = LoadInt(S);
187 f->locvars = luaM_newvector(S->L, n, LocVar);
188 f->sizelocvars = n;
189 for (i = 0; i < n; i++)
190 f->locvars[i].varname = NULL;
191 for (i = 0; i < n; i++) {
192 f->locvars[i].varname = LoadString(S);
193 f->locvars[i].startpc = LoadInt(S);
194 f->locvars[i].endpc = LoadInt(S);
195 }
196 n = LoadInt(S);
197 for (i = 0; i < n; i++)
198 f->upvalues[i].name = LoadString(S);
199}
200
201
202static void LoadFunction (LoadState *S, Proto *f, TString *psource) {

Callers 1

LoadFunctionFunction · 0.70

Calls 2

LoadIntFunction · 0.70
LoadStringFunction · 0.70

Tested by

no test coverage detected