diff options
author | myang6 <myang6@hdfgroup.org> | 2021-10-25 18:12:23 (GMT) |
---|---|---|
committer | myang6 <myang6@hdfgroup.org> | 2021-10-25 18:12:23 (GMT) |
commit | 56e0e6ad352c895e35718cec51d346fa45430382 (patch) | |
tree | 5d65be16c72b6fa3a1aadeafa07d34debe725d48 /src/H5Fpkg.h | |
parent | c17ec107bb9d3afd99774e66fba2a6c8f8ca5142 (diff) | |
download | hdf5-56e0e6ad352c895e35718cec51d346fa45430382.zip hdf5-56e0e6ad352c895e35718cec51d346fa45430382.tar.gz hdf5-56e0e6ad352c895e35718cec51d346fa45430382.tar.bz2 |
add macro, need to debug an error caused by using the macro
Diffstat (limited to 'src/H5Fpkg.h')
-rw-r--r-- | src/H5Fpkg.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/H5Fpkg.h b/src/H5Fpkg.h index 5cb1ecb..7b93c72 100644 --- a/src/H5Fpkg.h +++ b/src/H5Fpkg.h @@ -612,5 +612,12 @@ H5_DLL htri_t H5F__same_file_test(hid_t file_id1, hid_t file_id2); H5_DLL herr_t H5F__reparse_file_lock_variable_test(void); #endif /* H5F_TESTING */ -H5_DLL herr_t H5F_post_vfd_swrm_log_entry(H5F_t *f, int entry_type_code, char *body); +#define H5F_POST_VFD_SWMR_LOG_ENTRY(fp,entry_type_code,body) \ +if (fp !=NULL) \ + if (fp->shared != NULL) \ + if (fp->shared->vfd_swmr_log_on == TRUE) \ + H5F_post_vfd_swmr_log_entry(fp,entry_type_code,body); + + +H5_DLL herr_t H5F_post_vfd_swmr_log_entry(H5F_t *f, int entry_type_code, char *body); #endif /* H5Fpkg_H */ |