MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ERR_getErrorCode

Function ERR_getErrorCode

freebsd/contrib/zstd/lib/common/error_private.h:58–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56ERR_STATIC unsigned ERR_isError(size_t code) { return (code > ERROR(maxCode)); }
57
58ERR_STATIC ERR_enum ERR_getErrorCode(size_t code) { if (!ERR_isError(code)) return (ERR_enum)0; return (ERR_enum) (0-code); }
59
60/* check and forward error code */
61#define CHECK_V_F(e, f) size_t const e = f; if (ERR_isError(e)) return e

Callers 2

ERR_getErrorNameFunction · 0.70
ZSTD_getErrorCodeFunction · 0.70

Calls 1

ERR_isErrorFunction · 0.70

Tested by

no test coverage detected