Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you nest C preprocessor directives?

For instance, is the following possible:

#define definer(x) #define #x?
like image 774
mannicken Avatar asked Nov 28 '22 05:11

mannicken


1 Answers

No, you can't do that.
The pound (#) symbol has a different meaning while in a definition. it means - if this is an argument, make it a string by quoting it.

like image 74
shoosh Avatar answered Dec 10 '22 18:12

shoosh