adapt breaking changes
This commit is contained in:
@@ -169,13 +169,18 @@ class SDL3Generator : Cpp2BeefGenerator, this(Span<char8*> args)
|
|||||||
Type(Clang.GetTypedefDeclUnderlyingType(cursor));
|
Type(Clang.GetTypedefDeclUnderlyingType(cursor));
|
||||||
void FixCurly()
|
void FixCurly()
|
||||||
{
|
{
|
||||||
if (fileInfo.queuedTokens.HasFlag(.LSquirly))
|
if (fileInfo.queuedLSquirly > 0)
|
||||||
|
{
|
||||||
str.Append("\n{");
|
str.Append("\n{");
|
||||||
if (fileInfo.queuedTokens.HasFlag(.RSquirly))
|
fileInfo.queuedLSquirly--;
|
||||||
|
}
|
||||||
|
if (fileInfo.queuedRSquirly > 0)
|
||||||
|
{
|
||||||
str.Append("\n}");
|
str.Append("\n}");
|
||||||
|
fileInfo.queuedRSquirly--;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
str.Append("\n\t");
|
str.Append("\n\t");
|
||||||
fileInfo.queuedTokens = .None;
|
|
||||||
}
|
}
|
||||||
bool isSDL_GLContextFlag = spelling == "GlContext";
|
bool isSDL_GLContextFlag = spelling == "GlContext";
|
||||||
bool isSDL_MouseButtonFlags = spelling == "Button";
|
bool isSDL_MouseButtonFlags = spelling == "Button";
|
||||||
|
|||||||
Reference in New Issue
Block a user