mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-18 11:52:22 -07:00
Reimplement #ordered again
This commit is contained in:
+5
-5
@@ -2746,11 +2746,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