1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 02:29:52 +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:
uz 2011-11-07 21:25:20 +00:00
parent eef45199d5
commit 49c457f518

View File

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