output of debug information added to all API and core-API functions
This commit is contained in:
@@ -95,7 +95,7 @@ H5Block3dSetHalo (
|
||||
const h5_size_t k /*!< IN: radius in \c k */
|
||||
);
|
||||
|
||||
h5_size_t
|
||||
h5_ssize_t
|
||||
H5BlockGetNumFields (
|
||||
h5_file_t *const f /*!< IN: file handle */
|
||||
);
|
||||
|
||||
@@ -26,10 +26,10 @@ h5_ssize_t H5FedGetNumMeshes ( h5_file_t * const f, const h5_oid_t type_id );
|
||||
h5_ssize_t H5FedGetNumLevels ( h5_file_t * const f );
|
||||
h5t_lvl_idx_t H5FedGetLevel ( h5_file_t * const f );
|
||||
h5_ssize_t H5FedGetNumVertices ( h5_file_t * const f );
|
||||
h5_ssize_t H5FedGetNumVerticesCnode ( h5_file_t * const f, const h5_id_t cnode );
|
||||
h5_ssize_t H5FedGetNumVerticesCnode ( h5_file_t * const f, const int cnode );
|
||||
h5_ssize_t H5FedGetNumVerticesTotal ( h5_file_t * const f );
|
||||
h5_ssize_t H5FedGetNumElements ( h5_file_t * const f );
|
||||
h5_ssize_t H5FedGetNumElementsCnode ( h5_file_t * const f, const h5_id_t cnode );
|
||||
h5_ssize_t H5FedGetNumElementsCnode ( h5_file_t * const f, const int cnode );
|
||||
h5_ssize_t H5FedGetNumElementsTotal ( h5_file_t * const f );
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -48,6 +48,21 @@ extern char* h5_rfmts[];
|
||||
h5_debug ("(" fmt ")", a1, a2, a3, a4, a5); \
|
||||
}
|
||||
|
||||
#define __FUNC_ARGS6(fmt, a1, a2, a3, a4, a5, a6, mask) \
|
||||
if (h5_debug_level & mask ) { \
|
||||
h5_debug ("(" fmt ")", a1, a2, a3, a4, a5, a6); \
|
||||
}
|
||||
|
||||
#define __FUNC_ARGS7(fmt, a1, a2, a3, a4, a5, a6, a7, mask) \
|
||||
if (h5_debug_level & mask ) { \
|
||||
h5_debug ("(" fmt ")", a1, a2, a3, a4, a5, a6, a7); \
|
||||
}
|
||||
|
||||
#define __FUNC_ARGS8(fmt, a1, a2, a3, a4, a5, a6, a7, a8, mask) \
|
||||
if (h5_debug_level & mask ) { \
|
||||
h5_debug ("(" fmt ")", a1, a2, a3, a4, a5, a6, a7, a8); \
|
||||
}
|
||||
|
||||
#define __FUNC_ENTER0(type, mask) \
|
||||
__FUNC_ENTER(type); \
|
||||
__FUNC_ARGS0(mask);
|
||||
@@ -72,6 +87,18 @@ extern char* h5_rfmts[];
|
||||
__FUNC_ENTER(type); \
|
||||
__FUNC_ARGS5(fmt, a1, a2, a3, a4, a5, mask);
|
||||
|
||||
#define __FUNC_ENTER6(type, fmt, a1, a2, a3, a4, a5, a6, mask) \
|
||||
__FUNC_ENTER(type); \
|
||||
__FUNC_ARGS6(fmt, a1, a2, a3, a4, a5, a6, mask);
|
||||
|
||||
#define __FUNC_ENTER7(type, fmt, a1, a2, a3, a4, a5, a6, a7, mask) \
|
||||
__FUNC_ENTER(type); \
|
||||
__FUNC_ARGS7(fmt, a1, a2, a3, a4, a5, a6, a7, mask);
|
||||
|
||||
#define __FUNC_ENTER8(type, fmt, a1, a2, a3, a4, a5, a6, a7, a8, mask) \
|
||||
__FUNC_ENTER(type); \
|
||||
__FUNC_ARGS8(fmt, a1, a2, a3, a4, a5, a6, a7, a8, mask);
|
||||
|
||||
#define __FUNC_LEAVE(expr) { \
|
||||
ret_value = expr; \
|
||||
goto done; \
|
||||
@@ -91,32 +118,48 @@ done: \
|
||||
return ret_value;
|
||||
|
||||
|
||||
#define H5_API_ENTER(type) \
|
||||
#define H5_API_ENTER_(type) \
|
||||
if (!h5_initialized) { \
|
||||
h5_initialize(); \
|
||||
} \
|
||||
__FUNC_ENTER(type);
|
||||
|
||||
#define H5_API_ENTER0(type) \
|
||||
H5_API_ENTER_(type); \
|
||||
__FUNC_ARGS0(H5_DEBUG_API)
|
||||
|
||||
#define H5_API_ENTER1(type, fmt, a1) \
|
||||
H5_API_ENTER(type); \
|
||||
H5_API_ENTER_(type); \
|
||||
__FUNC_ARGS1(fmt, a1, H5_DEBUG_API)
|
||||
|
||||
#define H5_API_ENTER2(type, fmt, a1, a2) \
|
||||
H5_API_ENTER(type); \
|
||||
H5_API_ENTER_(type); \
|
||||
__FUNC_ARGS2(fmt, a1,a2, H5_DEBUG_API)
|
||||
|
||||
#define H5_API_ENTER3(type, fmt, a1, a2, a3) \
|
||||
H5_API_ENTER(type); \
|
||||
H5_API_ENTER_(type); \
|
||||
__FUNC_ARGS3(fmt, a1,a2,a3, H5_DEBUG_API)
|
||||
|
||||
#define H5_API_ENTER4(type, fmt, a1, a2, a3, a4) \
|
||||
H5_API_ENTER(type); \
|
||||
H5_API_ENTER_(type); \
|
||||
__FUNC_ARGS4(fmt, a1,a2,a3, a4, H5_DEBUG_API)
|
||||
|
||||
#define H5_API_ENTER5(type, fmt, a1, a2, a3, a4, a5) \
|
||||
H5_API_ENTER(type); \
|
||||
H5_API_ENTER_(type); \
|
||||
__FUNC_ARGS5(fmt, a1,a2,a3, a4, a5, H5_DEBUG_API)
|
||||
|
||||
#define H5_API_ENTER6(type, fmt, a1, a2, a3, a4, a5, a6) \
|
||||
H5_API_ENTER_(type); \
|
||||
__FUNC_ARGS6(fmt, a1,a2,a3, a4, a5, a6, H5_DEBUG_API)
|
||||
|
||||
#define H5_API_ENTER7(type, fmt, a1, a2, a3, a4, a5, a6, a7) \
|
||||
H5_API_ENTER_(type); \
|
||||
__FUNC_ARGS7(fmt, a1,a2,a3, a4, a5, a6, a7, H5_DEBUG_API)
|
||||
|
||||
#define H5_API_ENTER8(type, fmt, a1, a2, a3, a4, a5, a6, a7, a8) \
|
||||
H5_API_ENTER_(type); \
|
||||
__FUNC_ARGS8(fmt, a1,a2,a3, a4, a5, a6, a7, a8, H5_DEBUG_API)
|
||||
|
||||
#define H5_API_LEAVE(expr) __FUNC_LEAVE(expr)
|
||||
#define H5_API_RETURN(expr) __FUNC_RETURN(expr, H5_DEBUG_API);
|
||||
|
||||
|
||||
@@ -11,13 +11,15 @@
|
||||
#define H5_ERR_BADFD -77
|
||||
|
||||
#define H5_ERR_LAYOUT -100
|
||||
#define H5_ERR_NOENT -101
|
||||
|
||||
#define H5_ERR_INIT -200
|
||||
#define H5_ERR_NOENTRY -201
|
||||
#define H5_ERR_NOENTRY -101
|
||||
|
||||
#define H5_ERR_MPI -201
|
||||
#define H5_ERR_HDF5 -202
|
||||
#define H5_ERR_H5 -203
|
||||
#define H5_ERR_H5PART -204
|
||||
#define H5_ERR_H5BLOCK -205
|
||||
#define H5_ERR_H5FED -206
|
||||
|
||||
#define H5_ERR_INTERNAL -253
|
||||
#define H5_ERR_NOT_IMPLEMENTED -254
|
||||
|
||||
|
||||
Reference in New Issue
Block a user