diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2018-03-15 14:09:49 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2018-03-15 14:09:49 (GMT) |
commit | 9e6ee84e6bb0194ad4f046c49ed7936dbab234db (patch) | |
tree | 787c4f763f69445d4a3a3263ab721a3d81a6bb8d /java/src/jni/exceptionImp.c | |
parent | 8f5be458f4284f763ef30c5bf665740d69c5ec16 (diff) | |
parent | 7f0650336191d0437d98edf1e0dc5d60da7051f6 (diff) | |
download | hdf5-9e6ee84e6bb0194ad4f046c49ed7936dbab234db.zip hdf5-9e6ee84e6bb0194ad4f046c49ed7936dbab234db.tar.gz hdf5-9e6ee84e6bb0194ad4f046c49ed7936dbab234db.tar.bz2 |
Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/~bmribler/hdf5_bmr_cpp3 into develop
Diffstat (limited to 'java/src/jni/exceptionImp.c')
-rw-r--r-- | java/src/jni/exceptionImp.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/java/src/jni/exceptionImp.c b/java/src/jni/exceptionImp.c index 05c193f..afad5d5 100644 --- a/java/src/jni/exceptionImp.c +++ b/java/src/jni/exceptionImp.c @@ -33,6 +33,9 @@ extern "C" { #include "h5jni.h" #include "exceptionImp.h" +extern H5E_auto2_t efunc; +extern void *edata; + /*******************/ /* Local Variables */ @@ -122,10 +125,24 @@ JNIEXPORT jint JNICALL Java_hdf_hdf5lib_H5_H5error_1off (JNIEnv *env, jclass clss) { + H5Eget_auto2(H5E_DEFAULT, &efunc, &edata); H5Eset_auto2(H5E_DEFAULT, NULL, NULL); return 0; } /* end Java_hdf_hdf5lib_H5_H5error_1off() */ +/* + * Class: hdf_hdf5lib_exceptions_HDF5Library + * Method: H5error_on + * Signature: ()V + * + */ +JNIEXPORT void JNICALL +Java_hdf_hdf5lib_H5_H5error_1on + (JNIEnv *env, jclass clss) +{ + H5Eset_auto2(H5E_DEFAULT, efunc, edata); +} /* end Java_hdf_hdf5lib_H5_H5error_1on() */ + /* * Class: hdf_hdf5lib_exceptions_HDFLibraryException |