Back to index

glibc  2.9
assert.h
Go to the documentation of this file.
00001 #include <assert/assert.h>
00002 
00003 /* This prints an "Assertion failed" message and aborts.
00004    In installed assert.h this is only conditionally declared,
00005    so it has to be repeated here.  */
00006 extern void __assert_fail (__const char *__assertion, __const char *__file,
00007                         unsigned int __line, __const char *__function)
00008   __THROW __attribute__ ((__noreturn__));
00009 
00010 /* Likewise, but prints the error text for ERRNUM.  */
00011 extern void __assert_perror_fail (int __errnum, __const char *__file,
00012                               unsigned int __line,
00013                               __const char *__function)
00014      __THROW __attribute__ ((__noreturn__));
00015 
00016 #if !defined NOT_IN_libc || defined IS_IN_rtld
00017 hidden_proto (__assert_fail)
00018 hidden_proto (__assert_perror_fail)
00019 #endif