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:
parent
90f34b6bee
commit
58eec21fbf
9 changed files with 134 additions and 38 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue