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

Function LoadUpvalues

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

Source from the content-addressed store, hash-verified

164
165
166static void LoadUpvalues (LoadState *S, Proto *f) {
167 int i, n;
168 n = LoadInt(S);
169 f->upvalues = luaM_newvector(S->L, n, Upvaldesc);
170 f->sizeupvalues = n;
171 for (i = 0; i < n; i++)
172 f->upvalues[i].name = NULL;
173 for (i = 0; i < n; i++) {
174 f->upvalues[i].instack = LoadByte(S);
175 f->upvalues[i].idx = LoadByte(S);
176 }
177}
178
179
180static void LoadDebug (LoadState *S, Proto *f) {

Callers 1

LoadFunctionFunction · 0.70

Calls 2

LoadByteFunction · 0.85
LoadIntFunction · 0.70

Tested by

no test coverage detected