Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fbc: basic-macros: improve optional parens in macros
- improve the handling of optional parens in function like macros by ending a macro argument list on the number of arguments expected (for non-variadic macros only where number of expected arguments is known). Example: #macro add ? ( __Q__ ) ##__Q__ #endmacro #macro concat ? ( __A__, __B__ ) __A__##__B__ #endmacro #print concat( X, add( Y ) ) #print concat( X, add Y ) #print concat X, add Y /' Compile Output: XY XY XY '/
- Loading branch information
Showing
3 changed files
with
200 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters