blob: 661b9b0e18c5541fbd0f172d3da11c52bdc4ece8 [file] [log] [blame]
Scott Baker2d897982019-09-24 11:50:08 -07001/*
2 * Copyright (c) 2016-present, 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 "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 */
23unsigned ZBUFF_isError(size_t errorCode) { return ERR_isError(errorCode); }
24/*! ZBUFF_getErrorName() :
25* provides error code string from function result (useful for debugging) */
26const char* ZBUFF_getErrorName(size_t errorCode) { return ERR_getErrorName(errorCode); }