Skip to content

Commit 7a8bdc7

Browse files
committed
[cpp] Index macros
1 parent 9d6a98f commit 7a8bdc7

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

source/preprocessor.tex

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@
10441044
\pnum
10451045
\indextext{__va_args__@\mname{VA_ARGS}}%
10461046
\indextext{__va_opt__@\mname{VA_OPT}}%
1047-
The identifiers \mname{VA_ARGS} and \mname{VA_OPT}
1047+
The identifiers \stdmacro{__VA_ARGS__} and \stdmacro{__VA_OPT__}
10481048
shall occur only in the \grammarterm{replacement-list}
10491049
of a function-like macro that uses the ellipsis notation in the parameters.
10501050

@@ -1191,6 +1191,7 @@
11911191
\indextext{argument substitution|see{macro, argument substitution}}%
11921192

11931193
\indextext{__va_opt__@\mname{VA_OPT}}%
1194+
%%\stdmacro{__VA_OPT__}%
11941195
\begin{bnf}
11951196
\nontermdef{va-opt-replacement}\br
11961197
\terminal{\mname{VA_OPT} (} \opt{pp-tokens} \terminal{)}
@@ -1228,7 +1229,7 @@
12281229

12291230
\pnum
12301231
\indextext{__va_args__@\mname{VA_ARGS}}%
1231-
An identifier \mname{VA_ARGS} that occurs in the replacement list
1232+
An identifier \stdmacro{__VA_ARGS__} that occurs in the replacement list
12321233
shall be treated as if it were a parameter, and the variable arguments shall form
12331234
the preprocessing tokens used to replace it.
12341235

@@ -1254,7 +1255,7 @@
12541255

12551256
\pnum
12561257
\indextext{__va_opt__@\mname{VA_OPT}}%
1257-
The identifier \mname{VA_OPT}
1258+
The identifier \stdmacro{__VA_OPT__}
12581259
shall always occur as part of the preprocessing token sequence
12591260
\grammarterm{va-opt-replacement};
12601261
its closing \tcode{)} is determined by skipping
@@ -1718,7 +1719,7 @@
17181719

17191720
\item
17201721
\indextext{__date__@\mname{DATE}}%
1721-
\mname{DATE}\\
1722+
\stdmacro{__DATE__}\\
17221723
The date of translation of the source file:
17231724
a character string literal of the form
17241725
\tcode{"Mmm~dd~yyyy"},
@@ -1735,7 +1736,7 @@
17351736

17361737
\item
17371738
\indextext{__file__@\mname{FILE}}%
1738-
\mname{FILE}\\
1739+
\stdmacro{__FILE__}\\
17391740
The presumed name of the current source file (a character string
17401741
literal).
17411742
\begin{footnote}
@@ -1744,7 +1745,7 @@
17441745

17451746
\item
17461747
\indextext{__line__@\mname{LINE}}%
1747-
\mname{LINE}\\
1748+
\stdmacro{__LINE__}\\
17481749
The presumed line number (within the current source file) of the current source line
17491750
(an integer literal).
17501751
\begin{footnote}
@@ -1755,15 +1756,15 @@
17551756
\indextext{__stdc_hosted__@\mname{STDC_HOSTED}}%
17561757
\indextext{implementation!hosted}%
17571758
\indextext{implementation!freestanding}%
1758-
\mname{STDC_HOSTED}\\
1759+
\stdmacro{__STDC_HOSTED__}\\
17591760
The integer literal \tcode{1}
17601761
if the implementation is a hosted implementation or
17611762
the integer literal \tcode{0}
17621763
if it is a freestanding implementation\iref{intro.compliance}.
17631764

17641765
\item
17651766
\indextext{__stdcpp_default_new_alignment__@\mname{STDCPP_DEFAULT_NEW_ALIGNMENT}}%
1766-
\mname{STDCPP_DEFAULT_NEW_ALIGNMENT}\\
1767+
\stdmacro{__STDCPP_DEFAULT_NEW_ALIGNMENT__}\\
17671768
An integer literal of type \tcode{std::size_t}
17681769
whose value is the alignment guaranteed
17691770
by a call to \tcode{operator new(std::size_t)}
@@ -1775,47 +1776,47 @@
17751776

17761777
\item
17771778
\indextext{__stdcpp_float16_t__@\mname{STDCPP_FLOAT16_T}}%
1778-
\mname{STDCPP_FLOAT16_T}\\
1779+
\stdmacro{__STDCPP_FLOAT16_T__}\\
17791780
Defined as the integer literal \tcode{1}
17801781
if and only if the implementation supports
17811782
the \IsoFloatUndated{} floating-point interchange format binary16
17821783
as an extended floating-point type\iref{basic.extended.fp}.
17831784

17841785
\item
17851786
\indextext{__stdcpp_float32_t__@\mname{STDCPP_FLOAT32_T}}%
1786-
\mname{STDCPP_FLOAT32_T}\\
1787+
\stdmacro{__STDCPP_FLOAT32_T__}\\
17871788
Defined as the integer literal \tcode{1}
17881789
if and only if the implementation supports
17891790
the \IsoFloatUndated{} floating-point interchange format binary32
17901791
as an extended floating-point type.
17911792

17921793
\item
17931794
\indextext{__stdcpp_float64_t__@\mname{STDCPP_FLOAT64_T}}%
1794-
\mname{STDCPP_FLOAT64_T}\\
1795+
\stdmacro{__STDCPP_FLOAT64_T__}\\
17951796
Defined as the integer literal \tcode{1}
17961797
if and only if the implementation supports
17971798
the \IsoFloatUndated{} floating-point interchange format binary64
17981799
as an extended floating-point type.
17991800

18001801
\item
18011802
\indextext{__stdcpp_float128_t__@\mname{STDCPP_FLOAT128_T}}%
1802-
\mname{STDCPP_FLOAT128_T}\\
1803+
\stdmacro{__STDCPP_FLOAT128_T__}\\
18031804
Defined as the integer literal \tcode{1}
18041805
if and only if the implementation supports
18051806
the \IsoFloatUndated{} floating-point interchange format binary128
18061807
as an extended floating-point type.
18071808

18081809
\item
18091810
\indextext{__stdcpp_bfloat16_t__@\mname{STDCPP_BFLOAT16_T}}%
1810-
\mname{STDCPP_BFLOAT16_T}\\
1811+
\stdmacro{__STDCPP_BFLOAT16_T__}\\
18111812
Defined as the integer literal \tcode{1}
18121813
if and only if the implementation supports an extended floating-point type
18131814
with the properties of the \grammarterm{typedef-name} \tcode{std::bfloat16_t}
18141815
as described in \ref{basic.extended.fp}.
18151816

18161817
\item
18171818
\indextext{__time__@\mname{TIME}}%
1818-
\mname{TIME}\\
1819+
\stdmacro{__TIME__}\\
18191820
The time of translation of the source file:
18201821
a character string literal of the form
18211822
\tcode{"hh:mm:ss"}
@@ -1914,26 +1915,26 @@
19141915
\begin{description}
19151916
\item
19161917
\indextext{__stdc__@\mname{STDC}}%
1917-
\mname{STDC}\\
1918+
\stdmacro{__STDC__}\\
19181919
Whether \mname{STDC} is predefined and if so, what its value is,
19191920
are \impldef{definition and meaning of \mname{STDC}}.
19201921

19211922
\item
19221923
\indextext{__stdc_mb_might_neq_wc__@\mname{STDC_MB_MIGHT_NEQ_WC}}%
1923-
\mname{STDC_MB_MIGHT_NEQ_WC}\\
1924+
\stdmacro{__STDC_MB_MIGHT_NEQ_WC__}\\
19241925
The integer literal \tcode{1}, intended to indicate that, in the encoding for
19251926
\keyword{wchar_t}, a member of the basic character set need not have a code value equal to
19261927
its value when used as the lone character in an ordinary character literal.
19271928

19281929
\item
19291930
\indextext{__stdc_version__@\mname{STDC_VERSION}}%
1930-
\mname{STDC_VERSION}\\
1931+
\stdmacro{__STDC_VERSION__}\\
19311932
Whether \mname{STDC_VERSION} is predefined and if so, what its value is,
19321933
are \impldef{definition and meaning of \mname{STDC_VERSION}}.
19331934

19341935
\item
19351936
\indextext{__stdc_iso_10646__@\mname{STDC_ISO_10646}}%
1936-
\mname{STDC_ISO_10646}\\
1937+
\stdmacro{__STDC_ISO_10646__}\\
19371938
An integer literal of the form \tcode{yyyymmL}
19381939
(for example, \tcode{199712L}).
19391940
Whether \mname{STDC_ISO_10646} is predefined and
@@ -1942,7 +1943,7 @@
19421943

19431944
\item
19441945
\indextext{__stdcpp_threads__@\mname{STDCPP_THREADS}}%
1945-
\mname{STDCPP_THREADS}\\
1946+
\stdmacro{__STDCPP_THREADS__}\\
19461947
Defined, and has the value integer literal 1, if and only if a program
19471948
can have more than one thread of execution\iref{intro.multithread}.
19481949

0 commit comments

Comments
 (0)