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

Function luaU_decompile

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

Source from the content-addressed store, hash-verified

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;

Calls 3

ProcessCodeFunction · 0.85
reset_errorMethod · 0.80
stringClass · 0.50

Tested by

no test coverage detected