removed "error_public.h" dependency from "zstd.h"

This commit is contained in:
Yann Collet
2016-07-07 14:17:40 +02:00
parent 974f52fc5d
commit e72efeb0a1
3 changed files with 7 additions and 13 deletions
+5 -1
View File
@@ -63,7 +63,11 @@ typedef enum {
ZSTD_error_maxCode
} ZSTD_ErrorCode;
/* note : compare with size_t function results using ZSTD_getError() */
/*! ZSTD_getErrorCode() :
convert a `size_t` function result into a `ZSTD_ErrorCode` enum type,
which can be used to compare directly with enum list published into "error_public.h" */
ZSTD_ErrorCode ZSTD_getErrorCode(size_t functionResult);
const char* ZSTD_getErrorString(ZSTD_ErrorCode code);
#if defined (__cplusplus)