1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-26 17:36:57 +00:00

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:
uz 2011-06-08 21:09:40 +00:00
parent 7c926ada70
commit 15fc094c7a

View File

@ -796,7 +796,12 @@ void NextRawTok (void)
Restart:
/* Check if we have tokens from another input source */
if (InputFromStack ()) {
return;
if (CurTok.Tok == TOK_IDENT && IsDefine (&CurTok.SVal)) {
/* This is a define style macro - expand it */
MacExpandStart ();
goto Restart;
}
return;
}
Again: