Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/preprocessor/error"

From cppreference.com
m (Text replace - "{{syntax}}" to "===Syntax===")
m (Text replace - "{{see also}}" to "===See also===")
Line 15: Line 15:
 
''error_message'' can consist of several words not necessarily in quotes.  
 
''error_message'' can consist of several words not necessarily in quotes.  
  
{{see also}}
+
===See also===
  
 
{{rlp | warning | warning directive}}
 
{{rlp | warning | warning directive}}

Revision as of 18:02, 2 August 2011

Template:cpp/preprocessor/sidebar Shows given message and renders program ill-formed.

Syntax

#error Template:sparam

Explanation

After encountering #error directive, diagnostic message Template:sparam is shown and the program is rendered ill-formed (the compilation is stopped).

error_message can consist of several words not necessarily in quotes.

See also

warning directive