MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / DumpFunction

Function DumpFunction

ThirdParty/lua/lua/ldump.c:165–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163
164
165static void DumpFunction (const Proto *f, TString *psource, DumpState *D) {
166 if (D->strip || f->source == psource)
167 DumpString(NULL, D); /* no debug info or same source as its parent */
168 else
169 DumpString(f->source, D);
170 DumpInt(f->linedefined, D);
171 DumpInt(f->lastlinedefined, D);
172 DumpByte(f->numparams, D);
173 DumpByte(f->is_vararg, D);
174 DumpByte(f->maxstacksize, D);
175 DumpCode(f, D);
176 DumpConstants(f, D);
177 DumpUpvalues(f, D);
178 DumpProtos(f, D);
179 DumpDebug(f, D);
180}
181
182
183static void DumpHeader (DumpState *D) {

Callers 2

DumpProtosFunction · 0.85
luaU_dumpFunction · 0.85

Calls 8

DumpStringFunction · 0.85
DumpIntFunction · 0.85
DumpByteFunction · 0.85
DumpCodeFunction · 0.85
DumpConstantsFunction · 0.85
DumpUpvaluesFunction · 0.85
DumpProtosFunction · 0.85
DumpDebugFunction · 0.85

Tested by

no test coverage detected