mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 03:40:08 +00:00
Add #field_align(N)
It sets the minimum alignment for the fields within a struct. This cannot be used with `#packed`, but can be used with `#align(N)`. If `#align(N)` is less than `#field_align(N)`, then a warning will be printed.
This commit is contained in:
@@ -713,6 +713,7 @@ AST_KIND(_TypeBegin, "", bool) \
|
||||
isize field_count; \
|
||||
Ast *polymorphic_params; \
|
||||
Ast *align; \
|
||||
Ast *field_align; \
|
||||
Token where_token; \
|
||||
Slice<Ast *> where_clauses; \
|
||||
bool is_packed; \
|
||||
|
||||
Reference in New Issue
Block a user