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
Post a Comment