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

Function LoadUpvalues

third-party/lua-5.2.4/src/lundump.c:135–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135static void LoadUpvalues(LoadState* S, Proto* f)
136{
137 int i,n;
138 n=LoadInt(S);
139 f->upvalues=luaM_newvector(S->L,n,Upvaldesc);
140 f->sizeupvalues=n;
141 for (i=0; i<n; i++) f->upvalues[i].name=NULL;
142 for (i=0; i<n; i++)
143 {
144 f->upvalues[i].instack=LoadByte(S);
145 f->upvalues[i].idx=LoadByte(S);
146 }
147}
148
149static void LoadDebug(LoadState* S, Proto* f)
150{

Callers 1

LoadFunctionFunction · 0.70

Calls 2

LoadByteFunction · 0.85
LoadIntFunction · 0.70

Tested by

no test coverage detected