1 /*
2  * Copyright (c) 2016-2020, Yann Collet, Facebook, Inc.
3  * All rights reserved.
4  *
5  * This source code is licensed under both the BSD-style license (found in the
6  * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7  * in the COPYING file in the root directory of this source tree).
8  * You may select, at your option, one of the above-listed licenses.
9  */
10 
11 /*-*************************************
12 *  Dependencies
13 ***************************************/
14 #include "../common/error_private.h"
15 #include "zbuff.h"
16 
17 /*-****************************************
18 *  ZBUFF Error Management  (deprecated)
19 ******************************************/
20 
21 /*! ZBUFF_isError() :
22 *   tells if a return value is an error code */
23 unsigned ZBUFF_isError(size_t errorCode) { return ERR_isError(errorCode); }
24 /*! ZBUFF_getErrorName() :
25 *   provides error code string from function result (useful for debugging) */
26 const char* ZBUFF_getErrorName(size_t errorCode) { return ERR_getErrorName(errorCode); }
27