| 5 | extern "C" { |
| 6 | |
| 7 | EMMY_API char *ReformatLuaCode(const char *code, const char *uri, FormattingOptions options) { |
| 8 | CodeFormat &codeFormat = CodeFormat::GetInstance(); |
| 9 | auto result = codeFormat.Reformat(uri, code, options); |
| 10 | return result; |
| 11 | } |
| 12 | |
| 13 | EMMY_API RangeFormatResult RangeFormatLuaCode(const char *code, const char *uri, int startLine, int startCol, int endLine, int endCol, FormattingOptions options) { |
| 14 | CodeFormat &codeFormat = CodeFormat::GetInstance(); |