-   Programming (
-   -   #defining a macro inside a macro? (

saravkrish 05-24-2005 02:16 PM

#defining a macro inside a macro?

Is there anyway something similar to this could be done?

#define TEST(a,b,c) #define a b,c

1. The example above is actually a very simple version of what I want to do.
2. It might seem straight forward to simply do #define a b,c instead of calling TEST(a,b,c), but the real case where I want to use this makes much more sense than this.


jonaskoelker 05-24-2005 09:48 PM

I'm 90% sure it can't be done using cpp, but m4 can do it.

All times are GMT -5. The time now is 11:58 AM.