I wonder that is it possible to define "define" as a macro? Like that
#define A #define
A MAX_SIZE 100
A MIN_SIZE 0
Can I define it? (in c++)
I wonder that is it possible to define "define" as a macro? Like that
#define A #define
A MAX_SIZE 100
A MIN_SIZE 0
Can I define it? (in c++)
No. The result of macro expansions will not be treated as new macro directives.
You cannot do this, because the second #define
won't be parsed as another preprocessor directive.
You would have to write your own custom preprocessor to do this, like in this post: