mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-08 16:48:18 +00:00
Remove #[...] attribute syntax.
(Not really worth the change)
This commit is contained in:
@@ -173,6 +173,7 @@ Typeid_Kind :: enum u8 {
|
||||
Bit_Set,
|
||||
Opaque,
|
||||
}
|
||||
#assert(len(Typeid_Kind) < 32);
|
||||
|
||||
Typeid_Bit_Field :: bit_field #align align_of(uintptr) {
|
||||
index: 8*size_of(align_of(uintptr)) - 8,
|
||||
|
||||
+1
-5
@@ -3851,11 +3851,8 @@ Ast *parse_stmt(AstFile *f) {
|
||||
}
|
||||
|
||||
case Token_Hash: {
|
||||
Token hash_token = expect_token(f, Token_Hash);
|
||||
if (f->curr_token.kind == Token_OpenBracket) {
|
||||
return parse_attribute(f, hash_token, Token_OpenBracket, Token_CloseBracket);
|
||||
} else {
|
||||
Ast *s = nullptr;
|
||||
Token hash_token = expect_token(f, Token_Hash);
|
||||
Token name = expect_token(f, Token_Ident);
|
||||
String tag = name.string;
|
||||
|
||||
@@ -3906,7 +3903,6 @@ Ast *parse_stmt(AstFile *f) {
|
||||
fix_advance_to_next_stmt(f);
|
||||
|
||||
return s;
|
||||
}
|
||||
} break;
|
||||
|
||||
case Token_OpenBrace:
|
||||
|
||||
Reference in New Issue
Block a user