mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-09 21:11:36 -07:00
Fix alignment and size bug of enums; Remove #ordered and make the default #ordered.
This commit is contained in:
+5
-5
@@ -2745,11 +2745,11 @@ AstNode *parse_type_or_ident(AstFile *f) {
|
||||
syntax_error(tag, "Duplicate struct tag `#%.*s`", LIT(tag.string));
|
||||
}
|
||||
is_packed = true;
|
||||
} else if (str_eq(tag.string, str_lit("ordered"))) {
|
||||
if (is_ordered) {
|
||||
syntax_error(tag, "Duplicate struct tag `#%.*s`", LIT(tag.string));
|
||||
}
|
||||
is_ordered = true;
|
||||
// } else if (str_eq(tag.string, str_lit("ordered"))) {
|
||||
// if (is_ordered) {
|
||||
// syntax_error(tag, "Duplicate struct tag `#%.*s`", LIT(tag.string));
|
||||
// }
|
||||
// is_ordered = true;
|
||||
} else if (str_eq(tag.string, str_lit("align"))) {
|
||||
if (align) {
|
||||
syntax_error(tag, "Duplicate struct tag `#%.*s`", LIT(tag.string));
|
||||
|
||||
Reference in New Issue
Block a user