Skip to content

Commit 632a868

Browse files
burblebeetkoeppe
authored andcommitted
LWG3827 Deprecate <stdalign.h> and <stdbool.h> macros
Fixes NB GB 081, GB 082 (C++23 CD).
1 parent 5fc48b4 commit 632a868

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

source/future.tex

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,25 @@
218218
unless the function's \throws element
219219
specifies throwing an exception when the precondition is violated.
220220

221+
\rSec1[depr.c.macros]{Deprecated C macros}
222+
223+
\pnum
224+
The header \libheader{stdalign.h} has the following macro:
225+
\indexheader{stdalign.h}%
226+
\indexlibraryglobal{__alignas_is_defined}%
227+
\begin{codeblock}
228+
#define @\xname{alignas_is_defined}@ 1
229+
\end{codeblock}
230+
231+
\pnum
232+
The header \libheader{stdbool.h} has the following macro:
233+
\indexheader{stdbool.h}%
234+
\indexhdr{stdbool.h}%
235+
\indexlibraryglobal{__bool_true_false_are_defined}%
236+
\begin{codeblock}
237+
#define @\xname{bool_true_false_are_defined}@ 1
238+
\end{codeblock}
239+
221240
\rSec1[depr.relops]{Relational operators}%
222241
\indexlibraryglobal{rel_ops}%
223242

source/support.tex

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6090,11 +6090,6 @@
60906090
\rSec2[stdalign.h.syn]{Header \tcode{<stdalign.h>} synopsis}
60916091

60926092
\indexheader{stdalign.h}%
6093-
\indexlibraryglobal{__alignas_is_defined}%
6094-
\begin{codeblock}
6095-
#define @\xname{alignas_is_defined}@ 1
6096-
\end{codeblock}
6097-
60986093
\pnum
60996094
The contents of the \Cpp{} header \libheader{stdalign.h} are the same as the C
61006095
standard library header \libheader{stdalign.h}, with the following changes:
@@ -6107,11 +6102,6 @@
61076102

61086103
\indexheader{stdbool.h}%
61096104
\indexhdr{stdbool.h}%
6110-
\indexlibraryglobal{__bool_true_false_are_defined}%
6111-
\begin{codeblock}
6112-
#define @\xname{bool_true_false_are_defined}@ 1
6113-
\end{codeblock}
6114-
61156105
\pnum
61166106
The contents of the \Cpp{} header \libheader{stdbool.h} are the same as the C
61176107
standard library header \libheader{stdbool.h}, with the following changes:

0 commit comments

Comments
 (0)