zbuff_common.c 1003 B

1234567891011121314151617181920212223242526
  1. /*
  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. * Dependencies
  12. ***************************************/
  13. #include "error_private.h"
  14. #include "zbuff.h"
  15. /*-****************************************
  16. * ZBUFF Error Management (deprecated)
  17. ******************************************/
  18. /*! ZBUFF_isError() :
  19. * tells if a return value is an error code */
  20. unsigned ZBUFF_isError(size_t errorCode) { return ERR_isError(errorCode); }
  21. /*! ZBUFF_getErrorName() :
  22. * provides error code string from function result (useful for debugging) */
  23. const char* ZBUFF_getErrorName(size_t errorCode) { return ERR_getErrorName(errorCode); }