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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user