fred-mod-eppd-2.20.2
Macros
Error codes which signal the cause of an error and

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

Macros

#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)
 Macro checks given variable for an error, if the variable has error status, a flow of a program is redirected to given label. More...
 
#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.

Macro Definition Documentation

◆ CHK_XERR

#define CHK_XERR (   _var,
  _label 
)
Value:
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.

XERR_OK
#define XERR_OK
OK status.
Definition: epp_parser.c:70