| 3457 | } |
| 3458 | |
| 3459 | void luaU_decompileSubFunction(GluaDecompileContextP ctx, Proto* f, int dflag, std::string funcnumstr) { |
| 3460 | std::string realfuncnumstr;; |
| 3461 | |
| 3462 | Proto* cf = findSubFunction(ctx, f, funcnumstr, realfuncnumstr); |
| 3463 | if (!cf) { |
| 3464 | fprintf(stderr, "No such sub function num : %s , use -pn option to get available num.\n", funcnumstr.c_str()); |
| 3465 | return; |
| 3466 | } |
| 3467 | |
| 3468 | ctx->reset_error(); |
| 3469 | const auto &code = ProcessSubFunction(ctx, cf, 0, realfuncnumstr); |
| 3470 | ctx->reset_error(); |
| 3471 | printf("%s\n", code.c_str()); |
| 3472 | fflush(stdout); |
| 3473 | fflush(stderr); |
| 3474 | } |
| 3475 | |
| 3476 | } |
| 3477 | } |
nothing calls this directly
no test coverage detected