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

Function LoadProtos

third-party/lua-5.3.5/src/lundump.c:152–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150
151
152static void LoadProtos (LoadState *S, Proto *f) {
153 int i;
154 int n = LoadInt(S);
155 f->p = luaM_newvector(S->L, n, Proto *);
156 f->sizep = n;
157 for (i = 0; i < n; i++)
158 f->p[i] = NULL;
159 for (i = 0; i < n; i++) {
160 f->p[i] = luaF_newproto(S->L);
161 LoadFunction(S, f->p[i], f->source);
162 }
163}
164
165
166static void LoadUpvalues (LoadState *S, Proto *f) {

Callers 1

LoadFunctionFunction · 0.85

Calls 3

LoadIntFunction · 0.70
luaF_newprotoFunction · 0.70
LoadFunctionFunction · 0.70

Tested by

no test coverage detected