26 #ifndef __CCP4_ERROR_GUARD 27 #define __CCP4_ERROR_GUARD 32 #ifndef CCP4_ERRSYSTEM 33 #define CCP4_ERRSYSTEM(x) (((x)&0xfff)<<24) 36 #define CCP4_ERRLEVEL(x) (((x)&0xf)<<16) 38 #ifndef CCP4_ERRSETLEVEL 39 #define CCP4_ERRSETLEVEL(y,x) ((y) & (~CCP4_ERRLEVEL(0xf)) | CCP4_ERRLEVEL(x))) 41 #ifndef CCP4_ERRGETSYS 42 #define CCP4_ERRGETSYS(x) (((x)>>24)&0xfff) 44 #ifndef CCP4_ERRGETLEVEL 45 #define CCP4_ERRGETLEVEL(x) (((x)>>16)&0xf) 47 #ifndef CCP4_ERRGETCODE 48 #define CCP4_ERRGETCODE(x) ((x)&0xffff) 51 #define CCP4_ERR_SYS CCP4_ERRSYSTEM(0x0) 52 #define CCP4_ERR_FILE CCP4_ERRSYSTEM(0x1) 53 #define CCP4_ERR_COORD CCP4_ERRSYSTEM(0x2) 54 #define CCP4_ERR_MTZ CCP4_ERRSYSTEM(0x3) 55 #define CCP4_ERR_MAP CCP4_ERRSYSTEM(0x4) 56 #define CCP4_ERR_UTILS CCP4_ERRSYSTEM(0x5) 57 #define CCP4_ERR_PARS CCP4_ERRSYSTEM(0x6) 58 #define CCP4_ERR_SYM CCP4_ERRSYSTEM(0x7) 59 #define CCP4_ERR_GEN CCP4_ERRSYSTEM(0x8) 61 #define CCP4_COUNT(x) sizeof(x)/sizeof(x[0]) 157 void ccp4_signal(
const int,
const char *
const,
void (*)());
159 int cfile_perror(
const char *);
void ccp4_signal(const int, const char *const, void(*)())
Definition: library_err.c:278
const char * ccp4_strerror(int)
Definition: library_err.c:190
int ccp4_errno
Definition: library_err.c:33
void ccp4_error(const char *)
Definition: library_err.c:212
void ccp4_fatal(const char *)
Definition: library_err.c:235
int ccp4_liberr_verbosity(int iverb)
Definition: library_err.c:258