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

Function luaU_decompileSubFunction

src/Chain/libraries/glua/glua_decompile.cpp:3459–3474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 5

findSubFunctionFunction · 0.85
ProcessSubFunctionFunction · 0.85
printfClass · 0.85
reset_errorMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected