12#include "libical_ical_export.h"
96#define icalerror_assert(test, message) \
97 if (icalerror_get_errors_are_fatal() && !(test)) { \
98 icalerrprintf("%s(), %s:%d: %s\n", __FUNCTION__, __FILE__, __LINE__, message); \
99 icalerror_stop_here(); \
103#define icalerror_assert(test, message) \
104 if (icalerror_get_errors_are_fatal() && !(test)) { \
105 icalerrprintf("%s:%d: %s\n", __FILE__, __LINE__, message); \
106 icalerror_stop_here(); \
132#define icalerror_check_arg_re(test, arg, error) \
134 icalerror_stop_here(); \
153#define icalerror_warn(message) \
155 icalerrprintf("%s(), %s:%d: %s\n", __FUNCTION__, __FILE__, __LINE__, message); \
158#define icalerror_warn(message) \
160 icalerrprintf("%s:%d: %s\n", __FILE__, __LINE__, message); \
void icalerror_crash_here(void)
Triggered to abort the process.
Definition icalerror.c:73
icalerrorenum
Represents the different types of errors that can be triggered in libical.
Definition icalerror.h:64
@ ICAL_NEWFAILED_ERROR
Definition icalerror.h:72
@ ICAL_BADARG_ERROR
Definition icalerror.h:69
@ ICAL_FILE_ERROR
Definition icalerror.h:87
@ ICAL_ALLOCATION_ERROR
Definition icalerror.h:75
@ ICAL_INTERNAL_ERROR
Definition icalerror.h:84
@ ICAL_NO_ERROR
Definition icalerror.h:66
@ ICAL_MALFORMEDDATA_ERROR
Definition icalerror.h:78
@ ICAL_UNKNOWN_ERROR
Definition icalerror.h:96
@ ICAL_PARSE_ERROR
Definition icalerror.h:81
@ ICAL_UNIMPLEMENTED_ERROR
Definition icalerror.h:93
@ ICAL_USAGE_ERROR
Definition icalerror.h:90
void icalerror_stop_here(void)
Triggered before any error is called.
Definition icalerror.c:68