Skip to content

Commit 5cd8627

Browse files
cpplearnertkoeppe
authored andcommitted
[cpp.cond] Make defined and __has_include show up in Annex A (#1467)
1 parent 2ef19a3 commit 5cd8627

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

source/preprocessor.tex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,31 +188,31 @@
188188
\indextext{inclusion!conditional|see{preprocessing directive, conditional inclusion}}
189189

190190
\indextext{\idxcode{defined}}%
191-
\begin{ncbnf}
191+
\begin{bnf}
192192
\nontermdef{defined-macro-expression}\br
193193
\terminal{defined} identifier\br
194194
\terminal{defined (} identifier \terminal{)}
195-
\end{ncbnf}
195+
\end{bnf}
196196

197-
\begin{ncbnf}
197+
\begin{bnf}
198198
\nontermdef{h-preprocessing-token}\br
199199
\textnormal{any \grammarterm{preprocessing-token} other than \terminal{>}}
200-
\end{ncbnf}
200+
\end{bnf}
201201

202-
\begin{ncbnf}
202+
\begin{bnf}
203203
\nontermdef{h-pp-tokens}\br
204204
h-preprocessing-token\br
205205
h-pp-tokens h-preprocessing-token
206-
\end{ncbnf}
206+
\end{bnf}
207207

208208
\indextext{__HAS_INCLUDE@\xname{has_include}}%
209-
\begin{ncbnf}
209+
\begin{bnf}
210210
\nontermdef{has-include-expression}\br
211211
\terminal{\xname{has_include} ( <} h-char-sequence \terminal{> )}\br
212212
\terminal{\xname{has_include} ( "} q-char-sequence \terminal{" )}\br
213213
\terminal{\xname{has_include} (} string-literal \terminal{)}\br
214214
\terminal{\xname{has_include} ( <} h-pp-tokens \terminal{> )}
215-
\end{ncbnf}
215+
\end{bnf}
216216

217217
\pnum
218218
The expression that controls conditional inclusion

0 commit comments

Comments
 (0)