Difference between revisions of "cpp/preprocessor/error"
From cppreference.com
< cpp | preprocessor
m (r2.7.3) (Robot: Adding es:cpp/preprocessor/error, ru:cpp/preprocessor/error) |
m (Shorten template names. Use {{lc}} where appropriate.) |
||
Line 5: | Line 5: | ||
===Syntax=== | ===Syntax=== | ||
− | {{ | + | {{sdsc begin}} |
− | {{ | + | {{sdsc | {{ttb|#error}} {{spar|error_message}} }} |
− | {{ | + | {{sdsc end}} |
===Explanation=== | ===Explanation=== | ||
− | After encountering {{tt|#error}} directive, diagnostic message {{ | + | After encountering {{tt|#error}} directive, diagnostic message {{spar|error_message}} is shown and the program is rendered ill-formed (the compilation is stopped). |
''error_message'' can consist of several words not necessarily in quotes. | ''error_message'' can consist of several words not necessarily in quotes. |
Revision as of 19:51, 31 May 2013
Shows given message and renders program ill-formed.
Syntax
#error error_message
|
|||||||||
Explanation
After encountering #error
directive, diagnostic message error_message is shown and the program is rendered ill-formed (the compilation is stopped).
error_message can consist of several words not necessarily in quotes.