errors.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef ERRORS_H
00022 #define ERRORS_H
00023
00024
00025 #include "int.h"
00026 #include "errors_int.h"
00027
00028 #ifdef LIBTASN1_DEBUG
00029 # ifdef __FILE__
00030 # ifdef __LINE__
00031 # define _libtasn1_assert() fprintf(stderr, "LIBTASN1_ASSERT: %s:%d\n", __FILE__,__LINE__);
00032 # else
00033 # define _libtasn1_assert()
00034 # endif
00035 # else
00036 # define _libtasn1_assert()
00037 # endif
00038 #else
00039 # define _libtasn1_assert()
00040 #endif
00041
00042 const char* libtasn1_strerror(int error);
00043 void libtasn1_perror(int error);
00044
00045 #ifdef LIBTASN1_DEBUG
00046 void _libtasn1_log( const char *fmt, ...);
00047 #else
00048
00049
00050
00051 # ifdef C99_MACROS
00052 # define _libtasn1_log(...)
00053 # else
00054 # define _libtasn1_log _libtasn1_null_log
00055 void _libtasn1_null_log( void*, ...);
00056 # endif
00057
00058 #endif
00059
00060 #endif
00061
00062
00063
00064
00065
00066