MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / loadFunction

Function loadFunction

3rd/lua-5.4.3/src/lundump.c:256–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

loadProtosFunction · 0.85
luaU_undumpFunction · 0.85

Calls 8

loadStringNFunction · 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