Skip to content

Commit b5c0e80

Browse files
committed
Format yue.cpp
1 parent 2f9a25a commit b5c0e80

File tree

1 file changed

+45
-45
lines changed

1 file changed

+45
-45
lines changed

src/api/yue.cpp

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
extern "C" {
1+
extern "C"
2+
{
23
#include "core/core.h"
34
#include "luaapi.h"
45
}
@@ -137,7 +138,8 @@ static const tic_outline_item* getYueOutline(const char* code, s32* size)
137138
if (end > start)
138139
{
139140
tic_outline_item* new_items = (tic_outline_item*)realloc(items, (*size + 1) * Size);
140-
if (new_items) {
141+
if (new_items)
142+
{
141143
items = new_items;
142144
items[*size].pos = start;
143145
items[*size].size = (s32)(end - start + 1);
@@ -163,48 +165,46 @@ static const u8 MarkRom[] =
163165
};
164166

165167
extern "C" TIC_EXPORT const tic_script EXPORT_SCRIPT(Yue) = {
166-
21, // id
167-
"yue", // name
168-
".yue", // fileExtension
169-
"--", // projectComment
168+
21, // id
169+
"yue", // name
170+
".yue", // fileExtension
171+
"--", // projectComment
170172
{
171-
initYuescript, // init
172-
luaapi_close, // close
173-
luaapi_tick, // tick
174-
luaapi_boot, // boot
175-
{ // callback
176-
luaapi_scn, // scanline
177-
luaapi_bdr, // border
178-
luaapi_menu // menu
179-
}
180-
},
181-
getYueOutline, // getOutline
182-
evalYuescript, // eval
183-
"--[[", // blockCommentStart
184-
"]]", // blockCommentEnd
185-
nullptr, // blockCommentStart2
186-
nullptr, // blockCommentEnd2
187-
nullptr, // blockStringStart
188-
nullptr, // blockStringEnd
189-
nullptr, // stdStringStartEnd
190-
"--", // singleComment
191-
nullptr, // blockEnd
192-
YueKeywords, // keywords
193-
COUNT_OF(YueKeywords), // keywordsCount
194-
nullptr, // lang_isalnum
195-
false, // useStructuredEdition
196-
false, // useBinarySection
197-
0, // api_keywordsCount
198-
nullptr, // api_keywords
199-
{ // demo
200-
DemoRom,
201-
sizeof DemoRom,
202-
nullptr
203-
},
204-
{ // mark
205-
MarkRom,
206-
sizeof MarkRom,
207-
"yuemark.tic"
208-
},
209-
nullptr // demos
173+
initYuescript, // init
174+
luaapi_close, // close
175+
luaapi_tick, // tick
176+
luaapi_boot, // boot
177+
{
178+
// callback
179+
luaapi_scn, // scanline
180+
luaapi_bdr, // border
181+
luaapi_menu // menu
182+
}},
183+
getYueOutline, // getOutline
184+
evalYuescript, // eval
185+
"--[[", // blockCommentStart
186+
"]]", // blockCommentEnd
187+
nullptr, // blockCommentStart2
188+
nullptr, // blockCommentEnd2
189+
nullptr, // blockStringStart
190+
nullptr, // blockStringEnd
191+
nullptr, // stdStringStartEnd
192+
"--", // singleComment
193+
nullptr, // blockEnd
194+
YueKeywords, // keywords
195+
COUNT_OF(YueKeywords), // keywordsCount
196+
nullptr, // lang_isalnum
197+
false, // useStructuredEdition
198+
false, // useBinarySection
199+
0, // api_keywordsCount
200+
nullptr, // api_keywords
201+
{ // demo
202+
DemoRom,
203+
sizeof DemoRom,
204+
nullptr},
205+
{// mark
206+
MarkRom,
207+
sizeof MarkRom,
208+
"yuemark.tic"},
209+
nullptr // demos
210210
};

0 commit comments

Comments
 (0)