#define in a macro definition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



GCC-HELP,

Is it possible with GCC to define an object-like macro within a function-like macro, i.e. this is what I am trying to do...

#define MyMacro(a) \
   #define a##Type 55

Some compilers can do this with a #pragma statement which can simulate a command line option within the source "c" file such as:
#pragma option(-D MyDefinition=5);

I am new to GCC and only just started working with it and so far I like everything I see, but I cannot find a way to accomplish this.

Thanks for any help you can provide.

Sam Guido





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux