adapt breaking changes

This commit is contained in:
2026-06-22 15:55:15 +02:00
parent 58fb3a776a
commit 49fcd8e56e
+8 -3
View File
@@ -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";