mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-07 13:33:13 +00:00
(#594) Add #config to replace #defined; Restrict #defined within procedure bodies to remove race condition
This commit is contained in:
@@ -1785,6 +1785,9 @@ 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 == "config") {
|
||||
Ast *tag = ast_basic_directive(f, token, name.string);
|
||||
return parse_call_expr(f, tag);
|
||||
} else if (name.string == "soa" || name.string == "simd") {
|
||||
Ast *tag = ast_basic_directive(f, token, name.string);
|
||||
Ast *original_type = parse_type(f);
|
||||
|
||||
Reference in New Issue
Block a user