MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / loadProtos

Function loadProtos

3rd/lua-5.4.3/src/lundump.c:191–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189
190
191static void loadProtos (LoadState *S, Proto *f) {
192 int i;
193 int n = loadInt(S);
194 f->p = luaM_newvectorchecked(S->L, n, Proto *);
195 f->sizep = n;
196 for (i = 0; i < n; i++)
197 f->p[i] = NULL;
198 for (i = 0; i < n; i++) {
199 f->p[i] = luaF_newproto(S->L);
200 luaC_objbarrier(S->L, f, f->p[i]);
201 loadFunction(S, f->p[i], f->source);
202 }
203}
204
205
206/*

Callers 1

loadFunctionFunction · 0.85

Calls 3

loadIntFunction · 0.85
luaF_newprotoFunction · 0.85
loadFunctionFunction · 0.85

Tested by

no test coverage detected