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

Function loadProtos

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

Source from the content-addressed store, hash-verified

245
246
247static void loadProtos (LoadState *S, Proto *f) {
248 int i;
249 int n = loadInt(S);
250 f->p = luaM_newvectorchecked(S->L, n, Proto *);
251 f->sizep = n;
252 for (i = 0; i < n; i++)
253 f->p[i] = NULL;
254 for (i = 0; i < n; i++) {
255 f->p[i] = luaF_newproto(S->L);
256 luaC_objbarrier(S->L, f, f->p[i]);
257 loadFunction(S, f->p[i]);
258 }
259}
260
261
262/*

Callers 1

loadFunctionFunction · 0.70

Calls 3

loadIntFunction · 0.70
luaF_newprotoFunction · 0.70
loadFunctionFunction · 0.70

Tested by

no test coverage detected