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:
parent
7c926ada70
commit
15fc094c7a
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user