Fixed a problem with undefined identifiers in #if expressions: If the

identifier is not the last token on the line, the compiler will run into
an error.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3744 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2006-05-29 20:38:44 +00:00
parent b7255ed8fa
commit eb745b3d1b

View File

@@ -627,6 +627,7 @@ static void Primary (ExprDesc* E)
* is an undefined macro and replace it by a constant value of zero. * is an undefined macro and replace it by a constant value of zero.
*/ */
if (Preprocessing && CurTok.Tok == TOK_IDENT) { if (Preprocessing && CurTok.Tok == TOK_IDENT) {
NextToken ();
ED_MakeConstAbsInt (E, 0); ED_MakeConstAbsInt (E, 0);
return; return;
} }