src/H5PartErrors.h

- macro CHECK_READONLY_MODE added
This commit is contained in:
2006-09-25 19:23:18 +00:00
parent 0b151cd0aa
commit 1d011f5482
+7
View File
@@ -15,6 +15,13 @@
H5PART_ERR_INVAL, \
"Attempting to write to read-only file" );
#define CHECK_READONLY_MODE( f ) \
if ( ! f->mode==H5PART_READ ) \
return (*_err_handler) ( \
_H5Part_get_funcname(), \
H5PART_ERR_INVAL, \
"Operation is not allowed on writable files." );
#define CHECK_TIMEGROUP( f ) \
if ( f->timegroup <= 0 ) \
return (*_err_handler) ( \