Replace #vector[N]T with #simd[N]T to reduce confusion #498

This commit is contained in:
gingerBill
2019-12-15 11:30:09 +00:00
parent 89ccb5b99f
commit 58d4d424c6
7 changed files with 15 additions and 13 deletions

View File

@@ -1745,7 +1745,7 @@ Ast *parse_operand(AstFile *f, bool lhs) {
} else if (name.string == "defined") {
Ast *tag = ast_basic_directive(f, token, name.string);
return parse_call_expr(f, tag);
} else if (name.string == "soa" || name.string == "vector") {
} else if (name.string == "soa" || name.string == "simd") {
Ast *tag = ast_basic_directive(f, token, name.string);
Ast *original_type = parse_type(f);
Ast *type = unparen_expr(original_type);