diff options
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h index 425fd32..15721db 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -411,6 +411,20 @@ #endif /* + * A macro to portably increment enumerated types. + */ +#ifndef H5_INC_ENUM +# define H5_INC_ENUM(TYPE,VAR) (VAR)=((TYPE)((VAR)+1)) +#endif + +/* + * A macro to portably decrement enumerated types. + */ +#ifndef H5_DEC_ENUM +# define H5_DEC_ENUM(TYPE,VAR) (VAR)=((TYPE)((VAR)-1)) +#endif + +/* * A macro for detecting over/under-flow when casting between types */ #ifndef NDEBUG |