MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / LoadProtos

Function LoadProtos

ThirdParty/lua/lua/lundump.c:148–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146
147
148static void LoadProtos (LoadState *S, Proto *f) {
149 int i;
150 int n = LoadInt(S);
151 f->p = luaM_newvector(S->L, n, Proto *);
152 f->sizep = n;
153 for (i = 0; i < n; i++)
154 f->p[i] = NULL;
155 for (i = 0; i < n; i++) {
156 f->p[i] = luaF_newproto(S->L);
157 LoadFunction(S, f->p[i], f->source);
158 }
159}
160
161
162static 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