1 #include <assert/assert.h>
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__));
10 /* Likewise, but prints the error text for ERRNUM. */
11 extern void __assert_perror_fail (int __errnum, __const char *__file,
13 __const char *__function)
14 __THROW __attribute__ ((__noreturn__));
16 /* The real implementation of the two functions above. */
17 extern void __assert_fail_base (const char *fmt, const char *assertion,
18 const char *file, unsigned int line,
20 __THROW __attribute__ ((__noreturn__));
22 #if !defined NOT_IN_libc || defined IS_IN_rtld
23 hidden_proto (__assert_fail)
24 hidden_proto (__assert_perror_fail)