
7 May
2011
7 May
'11
4:34 p.m.
On 5/7/2011 10:22 PM, Hartmut Kaiser wrote:
Function like macros will be copied verbatim with all of their arguments. No macro expansion will be done for any of the arguments in that case, even if the argument list contains macros which would be expanded normally.
Oh, and since I needed macro arguments to be expanded, but the macro itself not to be, I found a simple work-around that you might want to document. I rewrote this: #define FOO(X) X to be: #define FOO2(X) X #define FOO FOO2 Now I can pass -NFOO -DN=1 to Wave, and FOO(N) will be partially expanded to FOO(1). :-) -- Eric Niebler BoostPro Computing http://www.boostpro.com