Error directive
From Cppreference
< cpp | preprocessor
C++ Standard Library |
---|
C++ language |
Preprocessor |
Shows given message and renders program ill-formed.
[edit] Syntax
#error error_message | |||||||||
[edit] 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.