Add #pure directive for asm templates

This commit is contained in:
gingerBill
2026-08-24 11:46:07 +01:00
parent 34e7a3bb58
commit c3c3aa1533
8 changed files with 180 additions and 28 deletions

View File

@@ -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;