1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-02 22:36:00 +02:00

Allow '[Align(X)]' on fields. Support '[Packed(X)]'

This commit is contained in:
Brian Fiete 2022-02-06 10:49:35 -05:00
parent 90f34b6bee
commit 58eec21fbf
9 changed files with 134 additions and 38 deletions

View file

@ -366,10 +366,18 @@ namespace System
[AttributeUsage(.Class | .Struct)]
public struct PackedAttribute : Attribute
{
public this()
{
}
public this(int align)
{
}
}
[AttributeUsage(.Class | .Struct | .Alloc)]
[AttributeUsage(.Class | .Struct | .Alloc | .Field)]
public struct AlignAttribute : Attribute
{
public this(int align)