From 0654c0ea90dcf60879d02baedadf392cdef13b8f Mon Sep 17 00:00:00 2001 From: Neil Fortner Date: Fri, 13 Apr 2018 21:23:51 -0500 Subject: Add missing file h5rados_example.h --- examples/h5rados_example.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/h5rados_example.h 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 +#include +#include +#include +#include +#include +#include + +/* 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) + -- cgit v0.12