Skip to content

Commit cd45f36

Browse files
AlisdairMtkoeppe
authored andcommitted
[cassert.syn] Improve indexing for macros
1 parent 299f4c1 commit cd45f36

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/diagnostics.tex

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,9 +456,8 @@
456456

457457
\rSec2[cassert.syn]{Header \tcode{<cassert>} synopsis}
458458

459-
\indexlibraryglobal{assert}%
460459
\begin{codeblock}
461-
#define assert(...) @\seebelow@
460+
#define @\libmacro{assert}@(...) @\seebelow@
462461
\end{codeblock}
463462

464463
\rSec2[assertions.assert]{The \tcode{assert} macro}
@@ -468,11 +467,11 @@
468467
at the point in the source file where \tcode{<cassert>} is included,
469468
the \tcode{assert} macro is defined as
470469
\begin{codeblock}
471-
#define assert(...) ((void)0)
470+
#define @\libmacro{assert}@(...) ((void)0)
472471
\end{codeblock}
473472

474473
\pnum
475-
Otherwise, the \tcode{assert} macro puts a diagnostic test into programs;
474+
Otherwise, the \libmacro{assert} macro puts a diagnostic test into programs;
476475
it expands to an expression of type \keyword{void} which
477476
has the following effects:
478477

0 commit comments

Comments
 (0)