summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/h5rados_example.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/h5rados_example.h b/examples/h5rados_example.h
new file mode 100644
index 0000000..4516b15
--- /dev/null
+++ b/examples/h5rados_example.h
@@ -0,0 +1,14 @@
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <mpi.h>
+#include <hdf5.h>
+#include <rados/librados.h>
+#include <H5VLrados_public.h>
+
+/* Macros for printing standard messages and issuing errors */
+#define AT() printf (" at %s:%d in %s()...\n", __FILE__, __LINE__, __FUNCTION__)
+#define FAILED() do {puts("*FAILED*");fflush(stdout);} while(0)
+#define ERROR do {FAILED(); AT(); goto error;} while(0)
+#define PRINTF_ERROR(...) do {FAILED(); AT(); printf(" " __VA_ARGS__); printf("\n"); goto error;} while(0)
+