git subrepo pull (merge) --force deps/libchdr
[pcsx_rearmed.git] / deps / libchdr / deps / zstd-1.5.5 / lib / deprecated / zbuff_common.c
CommitLineData
648db22b 1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
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 */
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); }