| 1841 | } |
| 1842 | |
| 1843 | void 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 | |
| 1859 | void listUpvalues(GluaDecompileContextP ctx, const Proto* f, std::stringstream &str) { |
| 1860 | int i = 0; |
no test coverage detected