diff --git a/src/ca65/scanner.c b/src/ca65/scanner.c index 61bf3c9f8..a9fd7c2d9 100644 --- a/src/ca65/scanner.c +++ b/src/ca65/scanner.c @@ -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: