
Macros | |
| #define | CALLOC_GUARD(var, rc) |
| Allocate one pointer with calloc and return rc if it fails. | |
| #define | CHECK(exp, marker) |
| Jump to marker if exp does not return VOLK_OK. | |
| #define | log_debug(...) |
| #define | LOG_RC(rc) |
| Log an error or warning for return codes that are not VOLK_OK. | |
| #define | log_trace(...) |
| #define | MALLOC_GUARD(var, rc) |
| Allocate one pointer with malloc and return rc if it fails. | |
| #define | NLCHECK(exp, marker) |
| Log error and jump to marker if exp is NULL. | |
| #define | NLNL(exp) |
| Log error and return NULL if exp is NULL. | |
| #define | NLRCCK(exp, _rc) |
| Return rc return code if exp is NULL. | |
| #define | PCHECK(exp, marker) |
| Jump to marker if exp returns a negative value (skip warnings). | |
| #define | PRCCK(exp) |
| Return exp return value if it is of VOLK_rc type and negative (=error). | |
| #define | PRCNL(exp) |
| Return NULL if exp returns a negative value (=error). | |
| #define | RCCK(exp) |
| Return exp return value if it is of VOLK_rc type and nonzero. | |
| #define | RCNL(exp) |
| Return NULL if exp returns a nonzero value. | |
| #define | VOLK_MAX_ERROR -88000 |
| #define | VOLK_MAX_WARNING 88899 |
| #define | VOLK_MIN_ERROR VOLK_ERROR |
| Minimum error value. | |
| #define | VOLK_MIN_WARNING VOLK_NOACTION |
| First warning value. | |
| #define CALLOC_GUARD | ( | var, | |
| rc ) |
| #define CHECK | ( | exp, | |
| marker ) |
Jump to marker if exp does not return VOLK_OK.
| #define LOG_RC | ( | rc | ) |
Log an error or warning for return codes that are not VOLK_OK.
Note that, if used outside of the other macros below, care must be taken to pass it an actual return code rather than an expression, otherwise the expression will be evaluated multiple times.
| #define MALLOC_GUARD | ( | var, | |
| rc ) |
| #define NLCHECK | ( | exp, | |
| marker ) |
Log error and jump to marker if exp is NULL.
| #define NLNL | ( | exp | ) |
| #define NLRCCK | ( | exp, | |
| _rc ) |
Return rc return code if exp is NULL.
| #define PCHECK | ( | exp, | |
| marker ) |
Jump to marker if exp returns a negative value (skip warnings).
| #define PRCCK | ( | exp | ) |
Return exp return value if it is of VOLK_rc type and negative (=error).
| #define PRCNL | ( | exp | ) |
| #define RCCK | ( | exp | ) |
Return exp return value if it is of VOLK_rc type and nonzero.
| #define RCNL | ( | exp | ) |
| #define VOLK_MAX_ERROR -88000 |
| #define VOLK_MAX_WARNING 88899 |
| #define VOLK_MIN_ERROR VOLK_ERROR |
| #define VOLK_MIN_WARNING VOLK_NOACTION |