fix stack types
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user