mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Add #force_inline parsing directly to expression statements
This commit is contained in:
@@ -4398,6 +4398,10 @@ Ast *parse_stmt(AstFile *f) {
|
|||||||
} else if (tag == "panic") {
|
} else if (tag == "panic") {
|
||||||
Ast *t = ast_basic_directive(f, hash_token, tag);
|
Ast *t = ast_basic_directive(f, hash_token, tag);
|
||||||
return ast_expr_stmt(f, parse_call_expr(f, t));
|
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") {
|
} else if (tag == "unroll") {
|
||||||
return parse_unrolled_for_loop(f, name);
|
return parse_unrolled_for_loop(f, name);
|
||||||
} else if (tag == "include") {
|
} else if (tag == "include") {
|
||||||
|
|||||||
Reference in New Issue
Block a user