Menu

#3 implement parameterized Macros

open
nobody
None
5
2003-12-16
2003-12-16
No

The current implementation only support Macros without
parameters. C++ Preprocessor allows macros with parameters.

#define MYMACRO(x,y) (((x)<(y))?(x):(y))

... MYMACRO ( x_1, x_2*2 )

An implementation for parsing such directives and
storage classes need to be created as well as the
registration of macro replacements. Like shown for
simple macros.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.