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

Function listParams

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

Source from the content-addressed store, hash-verified

1841}
1842
1843void listParams(GluaDecompileContextP ctx, const Proto* f, std::stringstream &str) {
1844 if (f->numparams > 0) {
1845 int i = 0;
1846 str << getLocalName(ctx, f, i);
1847 for (i = 1; i < f->numparams; i++) {
1848 str << ", " << getLocalName(ctx, f, i);
1849 }
1850 if (f->is_vararg) {
1851 str << ", ...";
1852 }
1853 }
1854 else if (f->is_vararg) {
1855 str << "...";
1856 }
1857}
1858
1859void listUpvalues(GluaDecompileContextP ctx, const Proto* f, std::stringstream &str) {
1860 int i = 0;

Callers 2

ProcessCodeFunction · 0.85

Calls 1

getLocalNameFunction · 0.85

Tested by

no test coverage detected