00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _ERROR_H
00022 #define _ERROR_H 1
00023
00024 #ifdef __cplusplus
00025 extern "C"
00026 {
00027 #endif
00028
00029
00030
00031
00032 #ifndef __ASSERT_FUNCTION
00033 # define __ASSERT_FUNCTION __PRETTY_FUNCTION__
00034 #endif
00035
00036 #define fail_neg(eval) real_fail_neg (eval, #eval, __ASSERT_FUNCTION, __FILE__, __LINE__)
00037 #define fail_null(eval) real_fail_null (eval, #eval, __ASSERT_FUNCTION, __FILE__, __LINE__)
00038 #define fail_if(eval) real_fail_if (eval, #eval, __ASSERT_FUNCTION, __FILE__, __LINE__)
00039
00040 void real_fail_neg ( int eval, const char * eval_str, const char * func, const char * file, int line );
00041 void real_fail_null ( const void * eval, const char * eval_str, const char * func, const char * file, int line );
00042 void real_fail_if ( bool eval, const char * eval_str, const char * func, const char * file, int line );
00043
00044 extern void sigpipe_clear( );
00045 extern int sigpipe_get( );
00046
00047 #ifdef __cplusplus
00048 }
00049 #endif
00050
00051 #endif
00052