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

Function LoadFunction

ThirdParty/lua/lua/lundump.c:198–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196
197
198static void LoadFunction (LoadState *S, Proto *f, TString *psource) {
199 f->source = LoadString(S);
200 if (f->source == NULL) /* no source in dump? */
201 f->source = psource; /* reuse parent's source */
202 f->linedefined = LoadInt(S);
203 f->lastlinedefined = LoadInt(S);
204 f->numparams = LoadByte(S);
205 f->is_vararg = LoadByte(S);
206 f->maxstacksize = LoadByte(S);
207 LoadCode(S, f);
208 LoadConstants(S, f);
209 LoadUpvalues(S, f);
210 LoadProtos(S, f);
211 LoadDebug(S, f);
212}
213
214
215static void checkliteral (LoadState *S, const char *s, const char *msg) {

Callers 2

LoadProtosFunction · 0.85
luaU_undumpFunction · 0.85

Calls 8

LoadStringFunction · 0.85
LoadIntFunction · 0.85
LoadByteFunction · 0.85
LoadCodeFunction · 0.85
LoadConstantsFunction · 0.85
LoadUpvaluesFunction · 0.85
LoadProtosFunction · 0.85
LoadDebugFunction · 0.85

Tested by

no test coverage detected