]> git.ipfire.org Git - thirdparty/glibc.git/blob - include/assert.h
Remove pre-ISO C support
[thirdparty/glibc.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 /* 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,
19 const char *function)
20 __THROW __attribute__ ((__noreturn__));
21
22 #if !defined NOT_IN_libc || defined IS_IN_rtld
23 hidden_proto (__assert_fail)
24 hidden_proto (__assert_perror_fail)
25 #endif