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

Function loadFunction

third-party/lua-5.5.0/src/lundump.c:326–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324
325
326static void loadFunction (LoadState *S, Proto *f) {
327 f->linedefined = loadInt(S);
328 f->lastlinedefined = loadInt(S);
329 f->numparams = loadByte(S);
330 /* get only the meaningful flags */
331 f->flag = cast_byte(loadByte(S) & ~PF_FIXED);
332 if (S->fixed)
333 f->flag |= PF_FIXED; /* signal that code is fixed */
334 f->maxstacksize = loadByte(S);
335 loadCode(S, f);
336 loadConstants(S, f);
337 loadUpvalues(S, f);
338 loadProtos(S, f);
339 loadString(S, f, &f->source);
340 loadDebug(S, f);
341}
342
343
344static void checkliteral (LoadState *S, const char *s, const char *msg) {

Callers 2

loadProtosFunction · 0.70
luaU_undumpFunction · 0.70

Calls 8

loadIntFunction · 0.70
loadByteFunction · 0.70
loadCodeFunction · 0.70
loadConstantsFunction · 0.70
loadUpvaluesFunction · 0.70
loadProtosFunction · 0.70
loadStringFunction · 0.70
loadDebugFunction · 0.70

Tested by

no test coverage detected