chiark / gitweb /
eglibc (2.11.3-4+deb6u3) squeeze-lts; urgency=medium
[eglibc.git] / include / assert.h
1 #include <assert/assert.h>
2
3 /* This prints an "Assertion failed" message and aborts.
4    In installed assert.h this is only conditionally declared,
5    so it has to be repeated here.  */
6 extern void __assert_fail (__const char *__assertion, __const char *__file,
7                            unsigned int __line, __const char *__function)
8   __THROW __attribute__ ((__noreturn__));
9
10 /* Likewise, but prints the error text for ERRNUM.  */
11 extern void __assert_perror_fail (int __errnum, __const char *__file,
12                                   unsigned int __line,
13                                   __const char *__function)
14      __THROW __attribute__ ((__noreturn__));
15
16 #if !defined NOT_IN_libc || defined IS_IN_rtld
17 hidden_proto (__assert_fail)
18 hidden_proto (__assert_perror_fail)
19 #endif