Add recursive scanning for .define style macros: Replacement using .define is
done not only when the macro is parsed, but also when it is expanded. git-svn-id: svn://svn.cc65.org/cc65/trunk@5045 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -796,7 +796,12 @@ void NextRawTok (void)
|
|||||||
Restart:
|
Restart:
|
||||||
/* Check if we have tokens from another input source */
|
/* Check if we have tokens from another input source */
|
||||||
if (InputFromStack ()) {
|
if (InputFromStack ()) {
|
||||||
return;
|
if (CurTok.Tok == TOK_IDENT && IsDefine (&CurTok.SVal)) {
|
||||||
|
/* This is a define style macro - expand it */
|
||||||
|
MacExpandStart ();
|
||||||
|
goto Restart;
|
||||||
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Again:
|
Again:
|
||||||
|
|||||||
Reference in New Issue
Block a user