C5_#error

#error
 Generate a compiler error and display a message
------------------------------------------------------------------------------
 Syntax

     #error [<messageText>]

 Arguments

     <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.

 Description

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

 Examples

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

        #ifdef NETWORK
           #error Network version not implemented.
        #endif

See Also: #command #ifdef #ifndef

Advertisements

2 responses to “C5_#error

  1. Pingback: C5_#stdout | Viva Clipper !

  2. Pingback: C5 Directives | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.