MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / dumpFunction

Function dumpFunction

extlibs/lua/src/ldump.c:179–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

dumpMethod · 0.85
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