MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / dumpFunction

Function dumpFunction

lib/lua/src/ldump.c:183–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181
182
183static void dumpFunction (DumpState *D, const Proto *f, TString *psource) {
184 if (D->strip || f->source == psource)
185 dumpString(D, NULL); /* no debug info or same source as its parent */
186 else
187 dumpString(D, f->source);
188 dumpInt(D, f->linedefined);
189 dumpInt(D, f->lastlinedefined);
190 dumpByte(D, f->numparams);
191 dumpByte(D, f->is_vararg);
192 dumpByte(D, f->maxstacksize);
193 dumpCode(D, f);
194 dumpConstants(D, f);
195 dumpUpvalues(D, f);
196 dumpProtos(D, f);
197 dumpDebug(D, f);
198}
199
200
201static 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