Files
glibc/include/assert.h
T

20 lines
706 B
C
Raw Normal View History

1995-02-18 01:27:10 +00:00
#include <assert/assert.h>
2002-04-09 20:36:24 +00:00
2002-08-03 07:02:10 +00:00
/* This prints an "Assertion failed" message and aborts.
In installed assert.h this is only conditionally declared,
so it has to be repeated here. */
extern void __assert_fail (__const char *__assertion, __const char *__file,
unsigned int __line, __const char *__function)
__THROW __attribute__ ((__noreturn__));
/* Likewise, but prints the error text for ERRNUM. */
extern void __assert_perror_fail (int __errnum, __const char *__file,
unsigned int __line,
__const char *__function)
__THROW __attribute__ ((__noreturn__));
2002-08-03 07:02:10 +00:00
#if !defined NOT_IN_libc || defined IS_IN_rtld
hidden_proto (__assert_fail)
hidden_proto (__assert_perror_fail)
2002-07-25 08:19:59 +00:00
#endif