Possible Duplicate:
C preprocessor: using #if inside #define?
Is there any trick to have preprocessor directives inside rhs of define ? The problem is, preprocessor folds all rhs into one long line. But maybe there is a trick ?
Example of what I'd want in the rhs is
#define MY_CHECK \
#ifndef MY_DEF \
# error MY_DEF not defined \
#endif
?
The purpose is a shortness: to have 1-line shortcut instead of multiline sequence of checks.