[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Generate a compiler error and display a message

     #error [<messageText>]


     <messageText> is the text of the message to be displayed.
     <messageText> is a literal character string--do not enclose the message
     in quotations unless you want them to appear as part of the display.


     #error causes the compiler to generate error number C2074.  If the
     <messageText> parameter is specified, an error message is displayed.


     .  This example displays an error message based on whether or not
        a NETWORK identifier was defined:

        #ifdef NETWORK
           #error Network version not implemented.

See Also: #command #ifdef #ifndef
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson