From d93c5653fd3526ba1f67b10ebadab01d5cea565f Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Fri, 1 Aug 1997 15:08:44 -0500 Subject: [svn-r5] ifdef'ed out the "H5Eset_push" function, which should only be used by developers doing debugging. --- src/H5E.c | 2 ++ src/H5Eproto.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/H5E.c b/src/H5E.c index a697f39..f893d55 100644 --- a/src/H5E.c +++ b/src/H5E.c @@ -345,6 +345,7 @@ done: PABLO_TRACE_OFF(H5E_mask, ID_H5Epush); /* ignore ret_value set */ } /* H5Epush */ +#ifdef H5_ERROR_DEBUG /*-------------------------------------------------------------------------- NAME H5Eset_push -- Set the function to call when an error value is reported @@ -391,4 +392,5 @@ done: FUNC_LEAVE(H5E_mask, ID_H5Eset_push, ret_value); } /* H5Eset_push */ +#endif /* H5_ERROR_DEBUG */ diff --git a/src/H5Eproto.h b/src/H5Eproto.h index da011bf..b97d0c0 100644 --- a/src/H5Eproto.h +++ b/src/H5Eproto.h @@ -114,7 +114,9 @@ extern "C" /* Functions in H5E.c */ int32 H5Enew_err_stack(uintn initial_stack_size); intn H5Edelete_err_stack(int32 err_hand); +#ifdef H5_ERROR_DEBUG H5E_push_func_t H5Eset_push(H5E_push_func_t func); +#endif /* H5_ERROR_DEBUG */ void H5Epush(hdf_maj_err_code_t maj, hdf_min_err_code_t min, const char *function_name, const char *file_name, intn line); void H5Eclear(int32 err_hand); -- cgit v0.12