#warning in Visual Studio

Posted by paleozogt on Stack Overflow See other posts from Stack Overflow or by paleozogt
Published on 2010-04-21T18:35:52Z Indexed on 2010/04/21 18:43 UTC
Read the original article Hit count: 362

Filed under:
|
|

In gcc I can do compile-time warnings like this:

#if !defined(_SOME_FEATURE_)
   #warning _SOME_FEATURE_ not defined-- be careful!
#endif

But in Visual Studio this doesn't work. Is there an alternative syntax for #warning?

© Stack Overflow or respective owner

Related posts about c

    Related posts about c++