Go to the documentation of this file.
11 #ifndef MCHECKSUM_ERROR_H
12 #define MCHECKSUM_ERROR_H
14 #include "mchecksum_config.h"
16 #define MCHECKSUM_SUCCESS 1
17 #define MCHECKSUM_FAIL -1
18 #define MCHECKSUM_TRUE 1
19 #define MCHECKSUM_FALSE 0
22 #if defined(__STDC_VERSION__) && (__STDC_VERSION__ < 199901L)
23 #if defined(__GNUC__) && (__GNUC__ >= 2)
24 #define __func__ __FUNCTION__
26 #define __func__ "<unknown>"
29 #define __func__ __FUNCTION__
33 #ifdef MCHECKSUM_HAVE_VERBOSE_ERROR
35 #define MCHECKSUM_ERROR_DEFAULT(x) { \
36 fprintf(stderr, "Error " \
39 __FILE__, __LINE__, __func__, x); \
42 #define MCHECKSUM_ERROR_DEFAULT(x)