| 3368 | } |
| 3369 | |
| 3370 | std::string luaU_decompile(GluaDecompileContextP ctx, Proto* f, int dflag) { |
| 3371 | // TODO: 语法尽量做成类似glua的语法 |
| 3372 | // char* code; |
| 3373 | ctx->debug = dflag; |
| 3374 | ctx->functionnum = 0; |
| 3375 | |
| 3376 | ctx->reset_error(); |
| 3377 | auto code = ProcessCode(ctx, f, 0, 0, std::string("0")); |
| 3378 | ctx->reset_error(); |
| 3379 | std::string code_str(code); |
| 3380 | fflush(stdout); |
| 3381 | fflush(stderr); |
| 3382 | return code_str; |
| 3383 | } |
| 3384 | |
| 3385 | Proto* findSubFunction(GluaDecompileContextP ctx, Proto* f, std::string funcnumstr, std::string &realfuncnumstr) { |
| 3386 | Proto* cf = f; |
no test coverage detected