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

Function getLocalName

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

i : index of Proto.locvars, not reg number

Source from the content-addressed store, hash-verified

266
267// i : index of Proto.locvars, not reg number
268std::string getLocalName(GluaDecompileContextP ctx, const Proto* f, int i) {
269 if (f->locvars && i < f->sizelocvars) {
270 // no need to test after FixLocalNames
271 return getstr(f->locvars[i].varname);
272 }
273 else {
274 ctx->unknown_local = std::string("ERROR_unknown_local_") + std::to_string(i);
275 return ctx->unknown_local;
276 }
277}
278
279// i : index of Proto.upvalues
280std::string getUpvalName(GluaDecompileContextP ctx, const Proto* f, int i) {

Callers 2

listParamsFunction · 0.85
ProcessCodeFunction · 0.85

Calls 2

stringClass · 0.50
to_stringFunction · 0.50

Tested by

no test coverage detected