DGtal  0.9.4beta
Namespaces | Functions
boost::iostreams Namespace Reference

Namespaces

 detail
 
 zlib
 

Functions

void zlib_error::check BOOST_PREVENT_MACRO_SUBSTITUTION (int _error)
 

Function Documentation

void zlib_error::check boost::iostreams::BOOST_PREVENT_MACRO_SUBSTITUTION ( int  _error)

Definition at line 76 of file zlib.cpp.

77 {
78  switch (_error) {
79  case Z_OK:
80  case Z_STREAM_END:
81  //case Z_BUF_ERROR:
82  return;
83  case Z_MEM_ERROR:
84  boost::throw_exception(std::bad_alloc());
85  default:
86  boost::throw_exception(zlib_error(_error));
87  ;
88  }
89 }