summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_error.h
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-09-07 14:55:53 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-09-07 14:55:53 (GMT)
commita8dd6f697319f332ffede33e7585a7071976db7b (patch)
treee733d5a6128a09c65b67d0b06c8b109b0c7eafdc /tools/lib/h5tools_error.h
parent741f02d7046f85bd679c181eef74b635ab1de2d9 (diff)
downloadhdf5-a8dd6f697319f332ffede33e7585a7071976db7b.zip
hdf5-a8dd6f697319f332ffede33e7585a7071976db7b.tar.gz
hdf5-a8dd6f697319f332ffede33e7585a7071976db7b.tar.bz2
HDFFV-9774 - add enable-error-stack, Merge from develop
Diffstat (limited to 'tools/lib/h5tools_error.h')
-rw-r--r--tools/lib/h5tools_error.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/lib/h5tools_error.h b/tools/lib/h5tools_error.h
index 136c5ed..a556b0a 100644
--- a/tools/lib/h5tools_error.h
+++ b/tools/lib/h5tools_error.h
@@ -62,6 +62,14 @@ H5TOOLS_DLLVAR hid_t H5E_tools_min_id_g;
/*
+ * H5TOOLS_INFO macro, used to facilitate error reporting . The arguments are the major
+ * error number, the minor error number, and a description of the error.
+ */
+#define H5TOOLS_INFO(min_id, str) { \
+ H5Epush2(H5tools_ERR_STACK_g, __FILE__, FUNC, __LINE__, H5tools_ERR_CLS_g, H5E_tools_g, min_id, str); \
+}
+
+/*
* HERROR macro, used to facilitate error reporting . The arguments are the major
* error number, the minor error number, and a description of the error.
*/