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:
parent
7c926ada70
commit
15fc094c7a
1 changed files with 6 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue