summaryrefslogtreecommitdiffstats
path: root/tools/h5dump.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5dump.h')
-rw-r--r--tools/h5dump.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/h5dump.h b/tools/h5dump.h
index 1b872de..083ac39 100644
--- a/tools/h5dump.h
+++ b/tools/h5dump.h
@@ -9,8 +9,8 @@
#define H5DUMP_MAX_RANK H5S_MAX_RANK
-#define begin_obj(obj,name) printf("%s \"%s\" %s\n", obj, name, BEGIN)
-#define end_obj() printf("%s\n", END);
+#define begin_obj(obj,name, begin) if (name) printf("%s \"%s\" %s\n", obj, name, begin); else printf("%s %s\n",obj,begin);
+#define end_obj(obj, end) printf("%s %s\n", end,obj);
#endif