MCPcopy Create free account
hub / github.com/DFHack/dfhack / LoadFunction

Function LoadFunction

depends/lua/src/lundump.c:209–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207
208
209static void LoadFunction (LoadState *S, Proto *f, TString *psource) {
210 f->source = LoadString(S, f);
211 if (f->source == NULL) /* no source in dump? */
212 f->source = psource; /* reuse parent's source */
213 f->linedefined = LoadInt(S);
214 f->lastlinedefined = LoadInt(S);
215 f->numparams = LoadByte(S);
216 f->is_vararg = LoadByte(S);
217 f->maxstacksize = LoadByte(S);
218 LoadCode(S, f);
219 LoadConstants(S, f);
220 LoadUpvalues(S, f);
221 LoadProtos(S, f);
222 LoadDebug(S, f);
223}
224
225
226static 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