Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index <cstarg> macros #7615

Merged
merged 3 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions source/expressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3511,7 +3511,7 @@
\indextext{ellipsis!conversion sequence}%
When there is no parameter for a given argument, the argument is passed
in such a way that the receiving function can obtain the value of the
argument by invoking \tcode{va_arg}\iref{support.runtime}.
argument by invoking \libmacro{va_arg}\iref{support.runtime}.
\begin{note}
This paragraph does not apply to arguments passed to a function parameter pack.
Function parameter packs are expanded during template instantiation\iref{temp.variadic},
Expand Down Expand Up @@ -7912,7 +7912,7 @@
an \grammarterm{asm-declaration}\iref{dcl.asm};

\item
an invocation of the \tcode{va_arg} macro\iref{cstdarg.syn};
an invocation of the \libmacro{va_arg} macro\iref{cstdarg.syn};

\item
a non-constant library call\iref{defns.nonconst.libcall};
Expand Down Expand Up @@ -7944,7 +7944,7 @@
an operation that has undefined behavior
as specified in \ref{library} through \ref{\lastlibchapter} or
\item
an invocation of the \tcode{va_start} macro\iref{cstdarg.syn}.
an invocation of the \libmacro{va_start} macro\iref{cstdarg.syn}.
\end{itemize}

\pnum
Expand Down
18 changes: 6 additions & 12 deletions source/support.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5993,21 +5993,16 @@
\rSec2[cstdarg.syn]{Header \tcode{<cstdarg>} synopsis}

\indexheader{cstdarg}%
\indexlibraryglobal{va_list}%
\indexlibraryglobal{va_start}%
\indexlibraryglobal{va_copy}%
\indexlibraryglobal{va_end}%
\indexlibraryglobal{va_arg}%
\begin{codeblock}
// all freestanding
namespace std {
using va_list = @\seebelow@;
using @\libglobal{va_list}@ = @\seebelow@;
}

#define va_arg(V, P) @\seebelow@
#define va_copy(VDST, VSRC) @\seebelow@
#define va_end(V) @\seebelow@
#define va_start(V, P) @\seebelow@
#define @\libmacro{va_arg}@(V, P) @\seebelow@
#define @\libmacro{va_copy}@(VDST, VSRC) @\seebelow@
#define @\libmacro{va_end}@(V) @\seebelow@
#define @\libmacro{va_start}@(V, P) @\seebelow@
\end{codeblock}

\pnum
Expand All @@ -6019,8 +6014,7 @@
the definition in~\ref{expr.call} applies.
\item
The restrictions that C places on the second parameter to the
\indexlibraryglobal{va_start}%
\tcode{va_start} macro in header \libheader{stdarg.h}
\libmacro{va_start} macro in header \libheader{stdarg.h}
are different in this document.
The parameter
\tcode{parmN}
Expand Down