Printing something with C preprocessor -


possible duplicate:
is there portable way print message c preprocessor?

when navigating through large code base, difficult guess defined , not. therefore, want print @ compilation time. example:

#ifdef some_define // want preprocessor print here  //  can know whether some_define defined or not #endif 

is possible c?
saw called #error somewhere. maybe option, or not?

for ms visual c++:

#define __print(str) __pragma(message(str)) 

Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -