Back to index

glibc  2.9
Defines | Functions
assert.h File Reference
#include <features.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define _ASSERT_H   1
#define __ASSERT_VOID_CAST   (void)
#define assert(expr)
#define __ASSERT_FUNCTION   ((__const char *) 0)


__BEGIN_DECLS void __assert_fail (__const char *__assertion, __const char *__file, unsigned int __line, __const char *__function) __THROW __attribute__((__noreturn__))
void __assert_perror_fail (int __errnum, __const char *__file, unsigned int __line, __const char *__function) __THROW __attribute__((__noreturn__))
void __assert (const char *__assertion, const char *__file, int __line) __THROW __attribute__((__noreturn__))

Define Documentation

#define __ASSERT_FUNCTION   ((__const char *) 0)

Definition at line 111 of file assert.h.

#define __ASSERT_VOID_CAST   (void)

Definition at line 42 of file assert.h.

#define _ASSERT_H   1

Definition at line 36 of file assert.h.

#define assert (   expr)
((expr)                                                        \
   ? __ASSERT_VOID_CAST (0)                                    \
   : __assert_fail (__STRING(expr), __FILE__, __LINE__, __ASSERT_FUNCTION))

Definition at line 88 of file assert.h.

Function Documentation

void __assert ( const char *  __assertion,
const char *  __file,
int  __line 

Definition at line 24 of file __assert.c.

  __assert_fail (assertion, file, line, (const char *) 0);

Here is the call graph for this function:

__BEGIN_DECLS void __assert_fail ( __const char *  __assertion,
__const char *  __file,
unsigned int  __line,
__const char *  __function 
void __assert_perror_fail ( int  __errnum,
__const char *  __file,
unsigned int  __line,
__const char *  __function