Files
2025-10-25 03:02:53 +03:00

30 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[cpp.error]
# 15 Preprocessing directives [[cpp]](./#cpp)
## 15.9 Diagnostic directives [cpp.error]
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/preprocessor.tex#L2126)
A preprocessing directive of the form
# error [*pp-tokens*](cpp.pre#nt:pp-tokens "15.1Preamble[cpp.pre]")opt [*new-line*](cpp.pre#nt:new-line "15.1Preamble[cpp.pre]")
renders the program ill-formed[.](#1.sentence-1)
A preprocessing directive of the form
# warning [*pp-tokens*](cpp.pre#nt:pp-tokens "15.1Preamble[cpp.pre]")opt [*new-line*](cpp.pre#nt:new-line "15.1Preamble[cpp.pre]")
requires the implementation to produce at least one diagnostic message
for the preprocessing translation unit ([[intro.compliance.general]](intro.compliance.general "4.1.1General"))[.](#1.sentence-2)
[2](#2)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/preprocessor.tex#L2139)
*Recommended practice*: Any diagnostic message caused by either of these directives
should include the specified sequence of preprocessing tokens[.](#2.sentence-1)