MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / LoadUpvalues

Function LoadUpvalues

ThirdParty/lua/lua/lundump.c:162–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160
161
162static void LoadUpvalues (LoadState *S, Proto *f) {
163 int i, n;
164 n = LoadInt(S);
165 f->upvalues = luaM_newvector(S->L, n, Upvaldesc);
166 f->sizeupvalues = n;
167 for (i = 0; i < n; i++)
168 f->upvalues[i].name = NULL;
169 for (i = 0; i < n; i++) {
170 f->upvalues[i].instack = LoadByte(S);
171 f->upvalues[i].idx = LoadByte(S);
172 }
173}
174
175
176static 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