]> git.ipfire.org Git - thirdparty/glibc.git/blame - include/assert.h
Remove pre-ISO C support
[thirdparty/glibc.git] / include / assert.h
CommitLineData
28f540f4 1#include <assert/assert.h>
6b87a564 2
37ba7d66
UD
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. */
a784e502
UD
6extern void __assert_fail (const char *__assertion, const char *__file,
7 unsigned int __line, const char *__function)
f8a3b5bf 8 __THROW __attribute__ ((__noreturn__));
37ba7d66 9
7a9ce79a 10/* Likewise, but prints the error text for ERRNUM. */
a784e502 11extern void __assert_perror_fail (int __errnum, const char *__file,
7a9ce79a 12 unsigned int __line,
a784e502 13 const char *__function)
7a9ce79a
RM
14 __THROW __attribute__ ((__noreturn__));
15
f8a3b5bf
UD
16/* The real implementation of the two functions above. */
17extern 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
37ba7d66
UD
22#if !defined NOT_IN_libc || defined IS_IN_rtld
23hidden_proto (__assert_fail)
7a9ce79a 24hidden_proto (__assert_perror_fail)
51d46f73 25#endif