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

Function ERR_getErrorCode

freebsd/contrib/openzfs/module/zstd/lib/zstd.c:812–812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

810ERR_STATIC unsigned ERR_isError(size_t code) { return (code > ERROR(maxCode)); }
811
812ERR_STATIC ERR_enum ERR_getErrorCode(size_t code) { if (!ERR_isError(code)) return (ERR_enum)0; return (ERR_enum) (0-code); }
813
814/* check and forward error code */
815#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