#include "../zstd_errors.h"
#include "compiler.h"
#include "debug.h"
#include "zstd_deps.h"
Go to the source code of this file.
◆ _FORCE_HAS_FORMAT_STRING
#define _FORCE_HAS_FORMAT_STRING |
( |
| ... | ) |
|
Value: do { \
if (0) { \
_force_has_format_string(__VA_ARGS__); \
} \
} while (0)
Ignore: this is an internal helper.
We want to force this function invocation to be syntactically correct, but we don't want to force runtime evaluation of its arguments.
◆ CHECK_F
Value:
#define f(i)
Definition sha256.c:46
#define CHECK_V_F(e, f)
Definition error_private.h:63
◆ CHECK_V_F
#define CHECK_V_F |
( |
| e, |
|
|
| f ) |
Value:
do { \
} while (0)
#define e(i)
Definition sha256.c:45
ERR_STATIC unsigned ERR_isError(size_t code)
Definition error_private.h:58
◆ ERR_QUOTE
◆ ERR_STATIC
#define ERR_STATIC static /* this version may generate warnings for unused static functions; disable the relevant warning */ |
◆ ERROR
Value:
char name[NAME_LEN_MAX+1]
Name of the filter.
Definition string_conversion.c:450
#define ZSTD_ERROR(name)
Definition error_private.h:56
◆ FORWARD_IF_ERROR
#define FORWARD_IF_ERROR |
( |
| err, |
|
|
| ... ) |
Value: do { \
size_t const err_code = (err); \
RAWLOG(3, "%s:%d: ERROR!: forwarding error in %s: %s", \
_FORCE_HAS_FORMAT_STRING(__VA_ARGS__); \
RAWLOG(3, ": " __VA_ARGS__); \
RAWLOG(3, "\n"); \
return err_code; \
} \
} while(0)
#define ERR_QUOTE(str)
Definition error_private.h:103
ERR_STATIC const char * ERR_getErrorName(size_t code)
Definition error_private.h:73
If the provided expression evaluates to an error code, returns that error code.
In debug modes, prints additional information.
◆ PREFIX
◆ RETURN_ERROR
#define RETURN_ERROR |
( |
| err, |
|
|
| ... ) |
Value: do { \
RAWLOG(3, "%s:%d: ERROR!: unconditional check failed, returning %s", \
_FORCE_HAS_FORMAT_STRING(__VA_ARGS__); \
RAWLOG(3, ": " __VA_ARGS__); \
RAWLOG(3, "\n"); \
} while(0)
#define ERROR(name)
Definition error_private.h:55
Unconditionally return the specified error.
In debug modes, prints additional information.
◆ RETURN_ERROR_IF
#define RETURN_ERROR_IF |
( |
| cond, |
|
|
| err, |
|
|
| ... ) |
Value: do { \
if (cond) { \
RAWLOG(3, "%s:%d: ERROR!: check %s failed, returning %s", \
_FORCE_HAS_FORMAT_STRING(__VA_ARGS__); \
RAWLOG(3, ": " __VA_ARGS__); \
RAWLOG(3, "\n"); \
} \
} while (0)
Return the specified error if the condition evaluates to true.
In debug modes, prints additional information. In order to do that (particularly, printing the conditional that failed), this can't just wrap RETURN_ERROR().
◆ ZSTD_ERROR
#define ZSTD_ERROR |
( |
| name | ) |
|
Value:
#define PREFIX(name)
Definition error_private.h:48
◆ ERR_getErrorCode()
◆ ERR_getErrorName()
◆ ERR_getErrorString()
◆ ERR_isError()