
16 Oct
2009
16 Oct
'09
7:05 p.m.
Hi,
is it possible to write a preprocessor macro which takes one argument and which expands differently depending on whether the argument is defined or not? Boost solution preferred.
Example:
#define FOO #undef BAR
MY_MACRO(FOO) expands to 1 MY_MACRO(BAR) expands to 0
Kind regards Ingolf
No, I'm afraid not.