passing #define-d values to #define-d macros

2010-09-26 Thread ir_idjit
ported to many system with VERY LITTLE modification, shouldn't this tiny functionality been adressed?? an escape character would've been nice -- View this message in context: http://old.nabble.com/passing--define-d-values-to--define-d-macros-tp29815182p29815182.html Sent from the gcc - Dev

Re: passing #define-d values to #define-d macros

2010-09-26 Thread ir_idjit
drives me crazy that i can't get his to work -- View this message in context: http://old.nabble.com/passing--define-d-values-to--define-d-macros-tp29815182p29815215.html Sent from the gcc - Dev mailing list archive at Nabble.com.

Re: passing #define-d values to #define-d macros

2010-09-26 Thread Nathan Froyd
On Sun, Sep 26, 2010 at 06:09:34PM -0700, ir_idjit wrote: i can seem to get this to work: #define PREFIX p_ #define HIGHER_INTERFACE(id) LOWER_INTERFACE(PREFIX, id) #define LOWER_INTERFACE(prefix, id) struct prefix##id \ { \ int i; \ } int main(void) {