Possible Duplicate:
Is there a portable way to print a message from the C preprocessor?
When navigating through a large code base, it is sometimes difficult to guess what is defined and what is not. Therefore, I want to print something at compilation time. For example:
#ifdef SOME_DEFINE
// I want a preprocessor to print something here so that
// I can know whether SOME_DEFINE is defined or not
#endif
Is this possible to do with C?
I saw something called #error
somewhere. Maybe that is my only option, or not?