I am trying to define a C++ macro that contains an #ifdef. However, the preprocessor complains that it expects an expression when I use PRINT_PRETTY_FUNCTION.
#define PRINT_PRETTY_FUNCTION \
    #ifdef PRINT_FUNC_NAMES \
    printf("%s\n", __PRETTY_FUNCTION__); \
    #endif 
Does C++ allow for such a macro definition?
 
    