The type _Bool perfectly models these APIs. Conversion from any scalar
type to _Bool results in true if the value is non-zero, and false if it
is zero.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
.nf
.B #include <assert.h>
.P
-.BI "void assert(scalar " expression );
+.BI "void assert(bool " expression );
.fi
.SH DESCRIPTION
This macro can help programmers find bugs in their programs,
.I expression
is required to be of type
.I int
-and undefined behavior results if it is not, but in C99
+and undefined behavior results if it is not,
+but in C99
it may have any scalar type.
.\" See Defect Report 107 for more details.
.SH BUGS
.nf
.B #include <assert.h>
.P
-.BI "void static_assert(scalar " constant-expression ", const char *" msg );
+.BI "void static_assert(bool " constant-expression ", const char *" msg );
.P
/* Since C23: */
-.BI "void static_assert(scalar " constant-expression );
+.BI "void static_assert(bool " constant-expression );
.fi
.SH DESCRIPTION
This macro is similar to