Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ User's Guide - the "error" pragma can be used to issue an error message with the specified http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
The "error" pragma can be used to issue an error message with the specified
text.  The following describes the form of the "error" pragma.

+--------------------------------------------------------------------------+
|      #pragma error "error text" [;]                                      |
|                                                                          |
+--------------------------------------------------------------------------+

where
    description

"error text"
    is the text of the message that you wish to display.

You should use the ANSI #error directive rather than this pragma.  This
pragma is provided for compatibility with legacy code.  The following is an
example.


     #if defined(__386__)
         ...
     #elseif defined(__86__)
         ...
     #else
     #pragma error ( "neither __386__ or __86__ defined" );
     #endif

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson