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

Function DumpFunction

depends/lua/src/ldump.c:166–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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