mirror of
https://github.com/cc65/cc65.git
synced 2024-12-24 11:31:31 +00:00
Disallow __asm__ on global level.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5303 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
eef45199d5
commit
49c457f518
@ -91,10 +91,13 @@ static void Parse (void)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check for an ASM statement (which is allowed also on global level) */
|
/* Disallow ASM statements on global level */
|
||||||
if (CurTok.Tok == TOK_ASM) {
|
if (CurTok.Tok == TOK_ASM) {
|
||||||
|
Error ("__asm__ is not allowed here");
|
||||||
|
/* Parse and remove the statement for error recovery */
|
||||||
AsmStatement ();
|
AsmStatement ();
|
||||||
ConsumeSemi ();
|
ConsumeSemi ();
|
||||||
|
RemoveGlobalCode ();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user