error directive

   
#error directive Issues an error message

 #error   message   

The #error directive tells the preprocessor to issue an error message and mark the source file as ill- formed , just as if the programmer made a programming error that the compiler detected . You can supply any sequence of preprocessor tokens as the message , and those tokens are echoed in the error message.

Example

 #if !defined(_  _cplusplus)  (_  _cplusplus < 199711L)   #error Not a conforming C++ compiler. #endif 

See Also

#line directive

   


C++ in a Nutshell
C++ in a Nutshell
ISBN: 059600298X
EAN: 2147483647
Year: 2005
Pages: 270
Authors: Ray Lischner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net