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

Function loadCode

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

Source from the content-addressed store, hash-verified

185
186
187static void loadCode (LoadState *S, Proto *f) {
188 int n = loadInt(S);
189 loadAlign(S, sizeof(f->code[0]));
190 if (S->fixed) {
191 f->code = getaddr(S, n, Instruction);
192 f->sizecode = n;
193 }
194 else {
195 f->code = luaM_newvectorchecked(S->L, n, Instruction);
196 f->sizecode = n;
197 loadVector(S, f->code, n);
198 }
199}
200
201
202static void loadFunction(LoadState *S, Proto *f);

Callers 1

loadFunctionFunction · 0.70

Calls 2

loadAlignFunction · 0.85
loadIntFunction · 0.70

Tested by

no test coverage detected