diff options
| author | gingerBill <bill@gingerbill.org> | 2021-02-25 10:01:12 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-02-25 10:01:12 +0000 |
| commit | 82275082ff31fcac6faff60c8095156ddb285aa8 (patch) | |
| tree | ab54f20be60c6dc65a7daaa53df08207b5300759 /src/parser.cpp | |
| parent | fc48e9638ad0a1f0a3691772c7d1e9f1cbf6fddc (diff) | |
Add `#force_inline` parsing directly to expression statements
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 45a80661d..3c1ad4407 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -4398,6 +4398,10 @@ Ast *parse_stmt(AstFile *f) { } else if (tag == "panic") { Ast *t = ast_basic_directive(f, hash_token, tag); return ast_expr_stmt(f, parse_call_expr(f, t)); + } else if (name.string == "force_inline" || + name.string == "force_no_inline") { + Ast *expr = parse_force_inlining_operand(f, name); + return ast_expr_stmt(f, expr); } else if (tag == "unroll") { return parse_unrolled_for_loop(f, name); } else if (tag == "include") { |