diff options
Diffstat (limited to 'gnulib/doc/posix-headers/assert.texi')
m--------- | gnulib | 0 | ||||
-rw-r--r-- | gnulib/doc/posix-headers/assert.texi | 33 |
2 files changed, 33 insertions, 0 deletions
diff --git a/gnulib b/gnulib deleted file mode 160000 -Subproject 443bc5ffcf7429e557f4a371b0661abe98ddbc1 diff --git a/gnulib/doc/posix-headers/assert.texi b/gnulib/doc/posix-headers/assert.texi new file mode 100644 index 0000000..aa78ee7 --- /dev/null +++ b/gnulib/doc/posix-headers/assert.texi @@ -0,0 +1,33 @@ +@node assert.h +@section @file{assert.h} + +POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/basedefs/assert.h.html} + +Gnulib module: assert-h + +See also the Gnulib module @code{assert}. + +Portability problems fixed by Gnulib: +@itemize +@item +The draft C1X and C++0X @code{static_assert}, and the draft C1X +@code{_Static_assert}, are not supported by many platforms. +For example, GCC versions before 4.6.0 do not support @code{_Static_assert}, +and G++ versions through at least 4.6.0 do not support @code{static_assert}. +@end itemize + +Portability problems not fixed by Gnulib: +@itemize +@item +Draft C1X @code{_Static_assert} and draft C++0X @code{static_assert} +are keywords that can be used without including @code{<assert.h>}. +The Gnulib substitutes are macros that require including @code{<assert.h>}. +@item +The draft C1X @code{static_assert} and @code{_Static_assert} can also +be used within a @code{struct} or @code{union} specifier, in place of +an ordinary declaration of a member of the struct or union. The +Gnulib substitute can be used only as an ordinary declaration. +@item +In C99, @code{assert} can be applied to any scalar expression. +In C89, the argument to @code{assert} is of type @code{int}. +@end itemize |