15 Preprocessing directives [cpp]

15.9 Diagnostic directives [cpp.error]

A preprocessing directive of the form
# error pp-tokensopt new-line
renders the program ill-formed.
A preprocessing directive of the form
# warning pp-tokensopt new-line
requires the implementation to produce at least one diagnostic message for the preprocessing translation unit ([intro.compliance.general]).
Recommended practice: Any diagnostic message caused by either of these directives should include the specified sequence of preprocessing tokens.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.