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

Function loadFunction

third-party/lua-5.4.6/src/lundump.c:258–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256
257
258static void loadFunction (LoadState *S, Proto *f, TString *psource) {
259 f->source = loadStringN(S, f);
260 if (f->source == NULL) /* no source in dump? */
261 f->source = psource; /* reuse parent's source */
262 f->linedefined = loadInt(S);
263 f->lastlinedefined = loadInt(S);
264 f->numparams = loadByte(S);
265 f->is_vararg = loadByte(S);
266 f->maxstacksize = loadByte(S);
267 loadCode(S, f);
268 loadConstants(S, f);
269 loadUpvalues(S, f);
270 loadProtos(S, f);
271 loadDebug(S, f);
272}
273
274
275static void checkliteral (LoadState *S, const char *s, const char *msg) {

Callers 2

loadProtosFunction · 0.70
luaU_undumpFunction · 0.70

Calls 8

loadStringNFunction · 0.85
loadIntFunction · 0.70
loadByteFunction · 0.70
loadCodeFunction · 0.70
loadConstantsFunction · 0.70
loadUpvaluesFunction · 0.70
loadProtosFunction · 0.70
loadDebugFunction · 0.70

Tested by

no test coverage detected