MCPcopy Create free account
hub / github.com/DFHack/dfhack / LoadUpvalues

Function LoadUpvalues

depends/lua/src/lundump.c:173–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171
172
173static void LoadUpvalues (LoadState *S, Proto *f) {
174 int i, n;
175 n = LoadInt(S);
176 f->upvalues = luaM_newvector(S->L, n, Upvaldesc);
177 f->sizeupvalues = n;
178 for (i = 0; i < n; i++)
179 f->upvalues[i].name = NULL;
180 for (i = 0; i < n; i++) {
181 f->upvalues[i].instack = LoadByte(S);
182 f->upvalues[i].idx = LoadByte(S);
183 }
184}
185
186
187static void LoadDebug (LoadState *S, Proto *f) {

Callers 1

LoadFunctionFunction · 0.85

Calls 2

LoadIntFunction · 0.85
LoadByteFunction · 0.85

Tested by

no test coverage detected