diff options
| author | gingerBill <bill@gingerbill.org> | 2020-05-13 23:29:06 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-05-13 23:29:06 +0100 |
| commit | 7c42d4ba75b0d063ae6d9ebb704068f3ebe16847 (patch) | |
| tree | 5c0243edfbba78aa673cfbceab78aead02ffc690 /src/parser.cpp | |
| parent | 14ce6d8ed8864f9283c55fdd0d9a9cc2039470b4 (diff) | |
(#594) Add `#config` to replace `#defined`; Restrict `#defined` within procedure bodies to remove race condition
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index eb5bdf7b6..ab38951e5 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -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); |