mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
24 lines
648 B
C
24 lines
648 B
C
|
/*********************************************************************
|
||
|
* Copyright 2018, UCAR/Unidata
|
||
|
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
|
||
|
*********************************************************************/
|
||
|
#ifndef NCH5DEBUG_H
|
||
|
#define NCH5DEBUG_H
|
||
|
|
||
|
/* Warning: significant performance impact */
|
||
|
#undef H5CATCH
|
||
|
|
||
|
#ifdef H5CATCH
|
||
|
/* Place breakpoint to catch errors close to where they occur*/
|
||
|
#define THROW(e) nch5throw(e)
|
||
|
#define THROWCHK(e) (void)nch5throw(e)
|
||
|
extern int nch5breakpoint(int err);
|
||
|
extern int nch5throw(int err);
|
||
|
#else
|
||
|
#define THROW(e) (e)
|
||
|
#define THROWCHK(e)
|
||
|
#endif
|
||
|
|
||
|
#endif /*NCH5DEBUG_H*/
|
||
|
|