fix stack types

This commit is contained in:
2026-06-15 16:35:42 +02:00
parent 14a89ef1e3
commit 92682c2191
4 changed files with 75 additions and 11 deletions
+8 -5
View File
@@ -86,11 +86,14 @@ class MicroUIGenerator : Cpp2BeefGenerator, this(Span<char8*> args)
BeginCursor(cursor);
str.Append("[CRepr] ");
AccessSpecifier(cursor);
str.Append("struct { public c_int idx; public c_char[MU_");
for (let char in spelling)
if (char.IsLetter)
str.Append(char.ToUpper);
str.Append("_SIZE] items; } ", spelling);
str.Append("struct { ");
Clang.Type_VisitFields(Clang.GetCursorType(cursor), (cursor, client_data) =>
{
Self self = (.)Internal.UnsafeCastToObject(client_data);
self.WriteCursor(cursor);
return .Continue;
}, Internal.UnsafeCastToPtr(this));
str.Append(" } ", spelling);
str.Append(';');
return;
}