Hi all, sorry in advanced that this is off topic for this forum, but you're
the best source of C programmers I know of (I'm a C++ programmer).

I want to know how to make this work in ANSI C/C++: (pseduo-code warning)

#define MY_MACRO \
        #ifdef BUILD_FLAG \
                #preprocessor flags \
                globals \
        #else \
                #other preprocessor flags \
                globals \
        #endif

The trouble (as far as I can tell) is that MY_MACRO expands to one line
because of the line continuation escapes in the macro definition.

So, my question is: how can I include line-breaks inside the #define?

Thanks for any help you can give me,
James.


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to