summaryrefslogtreecommitdiffstats
path: root/src/H5public.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5public.h')
-rw-r--r--src/H5public.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/H5public.h b/src/H5public.h
index 828c2d6..d04af03 100644
--- a/src/H5public.h
+++ b/src/H5public.h
@@ -338,6 +338,17 @@ typedef struct H5_ih_info_t {
hsize_t heap_size;
} H5_ih_info_t;
+static inline const char *
+htri_to_string(htri_t v)
+{
+ if (v == 0)
+ return "false";
+ else if (v < 0)
+ return "error";
+ else
+ return "true";
+}
+
/* Functions in H5.c */
H5_DLL herr_t H5open(void);
H5_DLL herr_t H5close(void);