mirror of
https://github.com/odin-lang/Odin.git
synced 2026-09-03 10:40:20 +00:00
Add #pure directive for asm templates
This commit is contained in:
@@ -2758,7 +2758,8 @@ gb_internal Ast *parse_asm_template(AstFile *f) {
|
||||
Token name = expect_token(f, Token_Ident);
|
||||
|
||||
if (name.string == "volatile" ||
|
||||
name.string == "align_stack") {
|
||||
name.string == "align_stack" ||
|
||||
name.string == "pure") {
|
||||
Ast *clobber = alloc_ast_node(f, Ast_AsmClobber);
|
||||
clobber->AsmClobber.token = hash;
|
||||
clobber->AsmClobber.name = name;
|
||||
|
||||
Reference in New Issue
Block a user