summaryrefslogtreecommitdiffstats
path: root/test/testhdf5.h
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-02-27 03:33:25 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-02-27 03:33:25 (GMT)
commitc16d23010120083bdf8070b1e3920ca77f83ae50 (patch)
tree6eb8969a4c341225711d014dd3e525852760543f /test/testhdf5.h
parent4c2749fb1da5181528e8b48caeda056d331e4e40 (diff)
downloadhdf5-c16d23010120083bdf8070b1e3920ca77f83ae50.zip
hdf5-c16d23010120083bdf8070b1e3920ca77f83ae50.tar.gz
hdf5-c16d23010120083bdf8070b1e3920ca77f83ae50.tar.bz2
[svn-r26327] Added public API functions that expose the C library's memory allocator
for use in filter functions that need to allocate or resize buffers. Intended for use with filter plugins, particularly on Windows, where C runtime (CRT) issues can cause problems. Fixes: HDFFV-9100 tested on: jam (minor, localized change)
Diffstat (limited to 'test/testhdf5.h')
-rw-r--r--test/testhdf5.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/testhdf5.h b/test/testhdf5.h
index 907fce9..62dadde 100644
--- a/test/testhdf5.h
+++ b/test/testhdf5.h
@@ -68,6 +68,18 @@
} \
}
+#define CHECK_PTR_NULL(ret,where) { \
+ if (VERBOSE_HI) { \
+ print_func(" Call to routine: %15s at line %4d in %s returned %p\n", \
+ (where), (int)__LINE__, __FILE__, (ret)); \
+ } \
+ if (ret) { \
+ TestErrPrintf ("*** UNEXPECTED RETURN from %s is not NULL line %4d in %s\n", \
+ (where), (int)__LINE__, __FILE__); \
+ H5Eprint2(H5E_DEFAULT, stdout); \
+ } \
+}
+
/* Used to make certain a return value _is_ a value */
#define VERIFY(_x, _val, where) do { \
long __x = (long)_x, __val = (long)_val; \