Add #force_inline parsing directly to expression statements

This commit is contained in:
gingerBill
2021-02-25 10:01:12 +00:00
parent fc48e9638a
commit 82275082ff

View File

@@ -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") {