Is there a way to make a macro have different behavior if it has parenthesis?

Viewed 160

I'm trying to do something like this:

#define FOO printf("No paren\n");
#define FOO(x) printf(x);

Is there a way to do this with c++ macros?

3 Answers
Related