fred-mod-eppd-2.13.0
Defines
Error codes which signal the cause of an error and

macros which make working with error values easier. More...

Defines

#define XERR_OK   0
 OK status.
#define XERR_LIBXML   1
 Error in function from libxml library.
#define XERR_ALLOC   2
 Memory allocation failed.
#define XERR_CONSTR   3
 Constraints given by caller were not fulfilled.
#define CHK_XERR(_var, _label)   if ((_var) != XERR_OK) goto _label
 Macro checks given variable for an error, if the variable has error status, a flow of a program is redirected to given label.
#define RESET_XERR(_var)   ((_var) = XERR_OK)
 Macro checks given variable for an error, if the variable has error status, a flow of a program is redirected to given label.

Detailed Description

macros which make working with error values easier.


Define Documentation

#define XERR_ALLOC   2

Memory allocation failed.

Referenced by xpath_getn().

#define XERR_CONSTR   3
#define XERR_LIBXML   1
#define XERR_OK   0