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

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -