Skip to content

Commit

Permalink
[cassert.syn] Better index the macro in this header
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisdairM committed Jan 8, 2025
1 parent 4a544d4 commit d1fbf86
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/diagnostics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,8 @@

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

\indexlibraryglobal{assert}%
\begin{codeblock}
#define assert(...) @\seebelow@
#define @\libmacro{assert}@(...) @\seebelow@
\end{codeblock}

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

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

Expand Down

0 comments on commit d1fbf86

Please sign in to comment.