MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / loadProtos

Function loadProtos

extlibs/lua/src/lundump.c:185–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183
184
185static void loadProtos (LoadState *S, Proto *f) {
186 int i;
187 int n = loadInt(S);
188 f->p = luaM_newvectorchecked(S->L, n, Proto *);
189 f->sizep = n;
190 for (i = 0; i < n; i++)
191 f->p[i] = NULL;
192 for (i = 0; i < n; i++) {
193 f->p[i] = luaF_newproto(S->L);
194 loadFunction(S, f->p[i], f->source);
195 }
196}
197
198
199static void loadUpvalues (LoadState *S, Proto *f) {

Callers 1

loadFunctionFunction · 0.85

Calls 3

loadIntFunction · 0.85
luaF_newprotoFunction · 0.85
loadFunctionFunction · 0.85

Tested by

no test coverage detected