Error directive
来自cppreference.com
< cpp | preprocessor
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
显示给定的消息,并呈现格式错误的程序.
Original:
Shows given message and renders program ill-formed.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 语法
#error error_message
|
|||||||||
[编辑] 解释
遇到
#error
指令后,诊断消息error_message示出和程序呈现虐待成形(编译被停止). Original:
After encountering
#error
directive, diagnostic message error_message is shown and the program is rendered ill-formed (the compilation is stopped). The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
“ERROR_MESSAGE可以由几个单词不一定报价.
Original:
error_message can consist of several words not necessarily in quotes.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.