diff options
| author | gingerBill <bill@gingerbill.org> | 2018-10-27 18:44:28 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-10-27 18:44:28 +0100 |
| commit | 2ddb27869bd704d28e4704648c26b17d00ba2ff5 (patch) | |
| tree | 2059d031bcfb8d4c448448f90dada2bc85358ce2 /src/parser.cpp | |
| parent | 5c608b01ba8b445511690fe499b811bb2ea15dbe (diff) | |
Built-in procedure `#defined`
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 231a40e99..38678a6dc 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -1677,6 +1677,9 @@ Ast *parse_operand(AstFile *f, bool lhs) { } else if (name.string == "assert") { Ast *tag = ast_basic_directive(f, token, name.string); return parse_call_expr(f, tag); + } else if (name.string == "defined") { + Ast *tag = ast_basic_directive(f, token, name.string); + return parse_call_expr(f, tag); } else { operand = ast_tag_expr(f, token, name, parse_expr(f, false)); } |