mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-10 06:45:47 -04:00
Stop silently ignoring unknown directives on an inline asm expression
This commit is contained in:
1 parent
ae91b9b369
commit
6cc6f06d4d
1 file changed
+2
@@ -3130,6 +3130,8 @@ gb_internal Ast *parse_operand(AstFile *f, bool lhs) {
|
||||
} else {
|
||||
dialect = InlineAsmDialect_Intel;
|
||||
}
|
||||
} else {
|
||||
syntax_error(token, "Invalid directive on inline asm expression: '#%.*s'", LIT(token.string));
|
||||
}
|
||||
} else {
|
||||
syntax_error(f->curr_token, "Expected an identifier after hash");
|
||||
|
||||
Reference in new issue
Block a user