[svn-r2088] * 2000-01-26

** src/H5Epublic.h
	Removed `do{...}while(0)' from H5E_BEGIN/END_TRY macros to get rid of
	a warning about the constant expression.
This commit is contained in:
Robb Matzke 2000-04-07 10:26:30 -05:00
parent 0cdbfd4ccc
commit 8fa2e9bd59

View File

@ -36,7 +36,7 @@
* Warning: don't break, return, or longjmp() from the body of the loop or
* the error reporting won't be properly restored!
*/
#define H5E_BEGIN_TRY do { \
#define H5E_BEGIN_TRY { \
herr_t (*H5E_saved_efunc)(void*); \
void *H5E_saved_edata; \
H5Eget_auto (&H5E_saved_efunc, &H5E_saved_edata); \
@ -44,7 +44,7 @@
#define H5E_END_TRY \
H5Eset_auto (H5E_saved_efunc, H5E_saved_edata); \
} while(0)
}
/*
* Public API Convenience Macros for Error reporting - Documented