HDF: hdf/src/herr_priv.h File Reference

Please, help us to better serve our user community by answering the following short survey: https://www.hdfgroup.org/website-survey/

| HDF 4.4.0 API Reference |

Loading...
Searching...
No Matches
herr_priv.h File Reference
`#include "hproto.h"`

## Macros
#define | HERROR(e)
#define | HRETURN_ERROR(err, ret_val)
#define | HGOTO_ERROR(err, ret_val)
#define | HGOTO_FAIL(ret_val)
#define | HCLOSE_GOTO_ERROR(hfid, err, ret_val)
#define | HGOTO_DONE(ret_val)
#define | HE_REPORT(msg)
#define | HE_REPORT_RETURN(msg, ret_val)
#define | HE_CLOSE_REPORT_RETURN(hfid, msg, ret_val)
#define | HE_REPORT_GOTO(msg, ret_val)
#define | HE_CLOSE_REPORT_GOTO(hfid, msg, ret_val)

## Macro Definition Documentation

## ◆ HCLOSE_GOTO_ERROR

#define HCLOSE_GOTO_ERROR | ( |  | hfid,
|  |  | err,
|  |  | ret_val )

Value:
do { \
HERROR(err); \
Hclose(hfid); \
ret_value = ret_val; \
goto done; \
} while (0)

## ◆ HE_CLOSE_REPORT_GOTO

#define HE_CLOSE_REPORT_GOTO | ( |  | hfid,
|  |  | msg,
|  |  | ret_val )

Value:
do { \
HEreport(msg); \
Hclose(hfid); \
ret_value = ret_val; \
goto done; \
} while (0)

## ◆ HE_CLOSE_REPORT_RETURN

#define HE_CLOSE_REPORT_RETURN | ( |  | hfid,
|  |  | msg,
|  |  | ret_val )

Value:
do { \
HEreport(msg); \
Hclose(hfid); \
return (ret_val); \
} while (0)

## ◆ HE_REPORT

#define HE_REPORT | ( |  | msg | ) |

Value:
HEreport(msg)
HEreport
void HEreport(const char *,...)

## ◆ HE_REPORT_GOTO

#define HE_REPORT_GOTO | ( |  | msg,
|  |  | ret_val )

Value:
do { \
HEreport(msg); \
ret_value = ret_val; \
goto done; \
} while (0)

## ◆ HE_REPORT_RETURN

#define HE_REPORT_RETURN | ( |  | msg,
|  |  | ret_val )

Value:
do { \
HEreport(msg); \
return (ret_val); \
} while (0)

## ◆ HERROR

#define HERROR | ( |  | e | ) |

Value:
HEpush(e, __func__, __FILE__, __LINE__)
HEpush
void HEpush(hdf_err_code_t error_code, const char *function_name, const char *file_name, int line)

## ◆ HGOTO_DONE

#define HGOTO_DONE | ( |  | ret_val | ) |

Value:
do { \
ret_value = ret_val; \
goto done; \
} while (0)

## ◆ HGOTO_ERROR

#define HGOTO_ERROR | ( |  | err,
|  |  | ret_val )

Value:
do { \
HERROR(err); \
ret_value = ret_val; \
goto done; \
} while (0)

## ◆ HGOTO_FAIL

#define HGOTO_FAIL | ( |  | ret_val | ) |

Value:
do { \
ret_value = ret_val; \
goto done; \
} while (0)

## ◆ HRETURN_ERROR

#define HRETURN_ERROR | ( |  | err,
|  |  | ret_val )

Value:
do { \
HERROR(err); \
return (ret_val); \
} while (0)