mirror of
https://github.com/cc65/cc65.git
synced 2024-12-28 06:30:16 +00:00
Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@1371 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
00a4c6ead0
commit
8d8458032d
@ -855,6 +855,14 @@ static int primary (ExprDesc* lval)
|
||||
return k;
|
||||
}
|
||||
|
||||
/* If we run into an identifier in preprocessing mode, we assume that this
|
||||
* is an undefined macro and replace it by a constant value of zero.
|
||||
*/
|
||||
if (Preprocessing && CurTok.Tok == TOK_IDENT) {
|
||||
MakeConstIntExpr (lval, 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* All others may only be used if the expression evaluation is not called
|
||||
* recursively by the preprocessor.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user