Skip to content

Commit

Permalink
refactor header
Browse files Browse the repository at this point in the history
  • Loading branch information
CppCXY committed Dec 27, 2024
1 parent fd46a49 commit 1b5879c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
9 changes: 8 additions & 1 deletion CodeFormatCLib/include/CodeFormatCLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,17 @@
#else
#define EMMY_API
#endif
#include "UtilTypes.h"

extern "C" {

struct RangeFormatResult {
int32_t StartLine;
int32_t StartCharacter;
int32_t EndLine;
int32_t EndCharacter;
char *Text;
};

EMMY_API char *ReformatLuaCode(const char *code, const char *uri);

EMMY_API RangeFormatResult RangeFormatLuaCode(const char *code, const char *uri, int startLine, int startCol, int endLine, int endCol);
Expand Down
1 change: 1 addition & 0 deletions CodeFormatCLib/src/CodeFormat.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "CodeFormatCore/Format/FormatBuilder.h"
#include "CodeFormatCore/TypeFormat/LuaTypeFormat.h"
#include "UtilTypes.h"
#include "CodeFormatCLib.h"

class CodeFormat {
public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,3 @@ class Result {
T Data;
};

struct RangeFormatResult {
int32_t StartLine;
int32_t StartCharacter;
int32_t EndLine;
int32_t EndCharacter;
char *Text;
};

0 comments on commit 1b5879c

Please sign in to comment.