Skip to content

Commit

Permalink
[cpp.cond] Make defined and __has_include show up in Annex A (#1467)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpplearner authored and tkoeppe committed Feb 15, 2017
1 parent 2ef19a3 commit 5cd8627
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions source/preprocessor.tex
Original file line number Diff line number Diff line change
Expand Up @@ -188,31 +188,31 @@
\indextext{inclusion!conditional|see{preprocessing directive, conditional inclusion}}

\indextext{\idxcode{defined}}%
\begin{ncbnf}
\begin{bnf}
\nontermdef{defined-macro-expression}\br
\terminal{defined} identifier\br
\terminal{defined (} identifier \terminal{)}
\end{ncbnf}
\end{bnf}

\begin{ncbnf}
\begin{bnf}
\nontermdef{h-preprocessing-token}\br
\textnormal{any \grammarterm{preprocessing-token} other than \terminal{>}}
\end{ncbnf}
\end{bnf}

\begin{ncbnf}
\begin{bnf}
\nontermdef{h-pp-tokens}\br
h-preprocessing-token\br
h-pp-tokens h-preprocessing-token
\end{ncbnf}
\end{bnf}

\indextext{__HAS_INCLUDE@\xname{has_include}}%
\begin{ncbnf}
\begin{bnf}
\nontermdef{has-include-expression}\br
\terminal{\xname{has_include} ( <} h-char-sequence \terminal{> )}\br
\terminal{\xname{has_include} ( "} q-char-sequence \terminal{" )}\br
\terminal{\xname{has_include} (} string-literal \terminal{)}\br
\terminal{\xname{has_include} ( <} h-pp-tokens \terminal{> )}
\end{ncbnf}
\end{bnf}

\pnum
The expression that controls conditional inclusion
Expand Down

0 comments on commit 5cd8627

Please sign in to comment.