MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / DumpFunction

Function DumpFunction

src/Chain/libraries/glua/ldump.cpp:166–185  ·  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(nullptr, D); /* no debug info or same source as its parent */
169 else
170 {
171 // auto source = getstr(f->source);
172 // DumpString(f->source, D);
173 DumpString(nullptr, D); // 不把文件名存入字节码
174 }
175 DumpInt(f->linedefined, D);
176 DumpInt(f->lastlinedefined, D);
177 DumpByte(f->numparams, D);
178 DumpByte(f->is_vararg, D);
179 DumpByte(f->maxstacksize, D);
180 DumpCode(f, D);
181 DumpConstants(f, D);
182 DumpUpvalues(f, D);
183 DumpProtos(f, D);
184 DumpDebug(f, D);
185}
186
187
188static 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