| 164 | |
| 165 | |
| 166 | static 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 | |
| 188 | static void DumpHeader(DumpState *D) { |
no test coverage detected