mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
Merge pull request #37 from takluyver/description-errno
Note that the description for system errors may be used by h5py
This commit is contained in:
commit
e6cda4817b
@ -114,12 +114,18 @@ typedef struct H5E_t H5E_t;
|
||||
#define HSYS_DONE_ERROR(majorcode, minorcode, retcode, str) \
|
||||
{ \
|
||||
int myerrno = errno; \
|
||||
/* Other projects may rely on the description format to get the errno and any changes should be \
|
||||
* considered as an API change \
|
||||
*/ \
|
||||
HDONE_ERROR(majorcode, minorcode, retcode, "%s, errno = %d, error message = '%s'", str, myerrno, \
|
||||
HDstrerror(myerrno)); \
|
||||
}
|
||||
#define HSYS_GOTO_ERROR(majorcode, minorcode, retcode, str) \
|
||||
{ \
|
||||
int myerrno = errno; \
|
||||
/* Other projects may rely on the description format to get the errno and any changes should be \
|
||||
* considered as an API change \
|
||||
*/ \
|
||||
HGOTO_ERROR(majorcode, minorcode, retcode, "%s, errno = %d, error message = '%s'", str, myerrno, \
|
||||
HDstrerror(myerrno)); \
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user