# in #define

View: New views
3 Messages — Rating Filter:   Alert me  

# in #define

by Arkadiusz Krysiak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Know anyone metod to place in body definition sign "#"  ?
i need to make definition like to this:
#define name(x,y) #define #x #y

----------------------------------------------------
Jest sposób by znów stać się dobrym. Ujmująca epicka opowieść
o ojcach i synach, męskiej przyjaźni, zdradzie i odkupieniu.
CHŁOPIEC Z LATAWCEM -  już na DVD!
http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Flatawiec.html&sid=408




_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@...
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: # in #define

by Dave Hylands :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Arkadiusz,

Whoops - sending to the list this time as well.

2008/7/9 Arkadiusz Krysiak <kubus___puchatek@...>:
> Know anyone metod to place in body definition sign "#"  ?
> i need to make definition like to this:
> #define name(x,y) #define #x #y

To the best of my knowledge you can't do that.

Perhaps you could share a more complete example of what you're trying
to do. There are often alternate techniques that can be used.

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@...
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: # in #define

by Ruud Vlaming :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 09 July 2008 16:57, Arkadiusz Krysiak wrote:
> Know anyone metod to place in body definition sign "#"  ?
> i need to make definition like to this:
> #define name(x,y) #define #x #y

Apart from the fact that this group is not the right one to ask
this question (it' a general preprocessor question), i suspect you
try to solve some problem the wrong way.

To awnser your question, this cannot be done in this way.

Regards,
Ruud


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@...
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list