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

Function LoadFunction

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

Source from the content-addressed store, hash-verified

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

Callers 2

LoadProtosFunction · 0.70
luaU_undumpFunction · 0.70

Calls 8

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

Tested by

no test coverage detected