A
Ancient_Hacker
It sure would be nice if I could have a macro that add a level of
indirection to its argument.
So if I write: AddIndirection( X )
The macro AddIndirection will do: #define X (*X)
so after that point whenever you use X it gets replaced by (*X)
Now I KNOW you can't have a #define generate another #define, but is
there some sneaky way to do this? Surely the cpp gurus out there can
figure out how?
Thanks,
grg
indirection to its argument.
So if I write: AddIndirection( X )
The macro AddIndirection will do: #define X (*X)
so after that point whenever you use X it gets replaced by (*X)
Now I KNOW you can't have a #define generate another #define, but is
there some sneaky way to do this? Surely the cpp gurus out there can
figure out how?
Thanks,
grg