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