Skip to content

Commit 371d284

Browse files
authored
[cpp.predefined] Tidy specification of __FILE__ and __LINE__ (#8584)
Promotes the footnotes to notes and adds cross-references.
1 parent 69fe27f commit 371d284

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

source/preprocessor.tex

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2219,20 +2219,20 @@
22192219
\item
22202220
\indextext{__file__@\mname{FILE}}%
22212221
\mname{FILE}\\
2222-
The presumed name of the current source file (a character string
2223-
literal).
2224-
\begin{footnote}
2225-
The presumed source file name can be changed by the \tcode{\#line} directive.
2226-
\end{footnote}
2222+
A character string literal representing the presumed name of
2223+
the current source file.
2224+
\begin{note}
2225+
The presumed source file name can be changed by the \tcode{\#line} directive\iref{cpp.line}.
2226+
\end{note}
22272227

22282228
\item
22292229
\indextext{__line__@\mname{LINE}}%
22302230
\mname{LINE}\\
2231-
The presumed line number (within the current source file) of the current source line
2232-
(an integer literal).
2233-
\begin{footnote}
2234-
The presumed line number can be changed by the \tcode{\#line} directive.
2235-
\end{footnote}
2231+
An integer literal representing the presumed line number of
2232+
the current source line within the current source file.
2233+
\begin{note}
2234+
The presumed line number can be changed by the \tcode{\#line} directive\iref{cpp.line}.
2235+
\end{note}
22362236

22372237
\item
22382238
\indextext{stdc__embed_not_found__@\mname{STDC_EMBED_NOT_FOUND}}%

0 commit comments

Comments
 (0)