Project Alice
|
Go to the source code of this file.
Macros | |
#define | ERR_STATIC static /* this version may generate warnings for unused static functions; disable the relevant warning */ |
#define | PREFIX(name) ZSTD_error_##name |
#define | ERROR(name) ZSTD_ERROR(name) |
#define | ZSTD_ERROR(name) ((size_t)-PREFIX(name)) |
#define | CHECK_V_F(e, f) |
#define | CHECK_F(f) do { CHECK_V_F(_var_err__, f); } while (0) |
#define | _FORCE_HAS_FORMAT_STRING(...) |
#define | ERR_QUOTE(str) #str |
#define | RETURN_ERROR_IF(cond, err, ...) |
#define | RETURN_ERROR(err, ...) |
#define | FORWARD_IF_ERROR(err, ...) |
Typedefs | |
typedef ZSTD_ErrorCode | ERR_enum |
Functions | |
ERR_STATIC unsigned | ERR_isError (size_t code) |
ERR_STATIC ERR_enum | ERR_getErrorCode (size_t code) |
const char * | ERR_getErrorString (ERR_enum code) |
ERR_STATIC const char * | ERR_getErrorName (size_t code) |
#define _FORCE_HAS_FORMAT_STRING | ( | ... | ) |
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.
Definition at line 103 of file error_private.h.
#define CHECK_F | ( | f | ) | do { CHECK_V_F(_var_err__, f); } while (0) |
Definition at line 69 of file error_private.h.
#define CHECK_V_F | ( | e, | |
f | |||
) |
Definition at line 63 of file error_private.h.
#define ERR_QUOTE | ( | str | ) | #str |
Definition at line 110 of file error_private.h.
#define ERR_STATIC static /* this version may generate warnings for unused static functions; disable the relevant warning */ |
Definition at line 40 of file error_private.h.
#define ERROR | ( | name | ) | ZSTD_ERROR(name) |
Definition at line 55 of file error_private.h.
#define FORWARD_IF_ERROR | ( | err, | |
... | |||
) |
If the provided expression evaluates to an error code, returns that error code.
In debug modes, prints additional information.
Definition at line 151 of file error_private.h.
#define PREFIX | ( | name | ) | ZSTD_error_##name |
Definition at line 48 of file error_private.h.
#define RETURN_ERROR | ( | err, | |
... | |||
) |
Unconditionally return the specified error.
In debug modes, prints additional information.
Definition at line 136 of file error_private.h.
#define RETURN_ERROR_IF | ( | cond, | |
err, | |||
... | |||
) |
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().
Definition at line 119 of file error_private.h.
#define ZSTD_ERROR | ( | name | ) | ((size_t)-PREFIX(name)) |
Definition at line 56 of file error_private.h.
typedef ZSTD_ErrorCode ERR_enum |
Definition at line 47 of file error_private.h.
ERR_STATIC ERR_enum ERR_getErrorCode | ( | size_t | code | ) |
Definition at line 60 of file error_private.h.
ERR_STATIC const char * ERR_getErrorName | ( | size_t | code | ) |
Definition at line 78 of file error_private.h.
const char * ERR_getErrorString | ( | ERR_enum | code | ) |
ERR_STATIC unsigned ERR_isError | ( | size_t | code | ) |