DGtal
0.9.3
boost
iostreams
Namespaces
|
Functions
boost::iostreams Namespace Reference
Namespaces
detail
zlib
Functions
void zlib_error::check
BOOST_PREVENT_MACRO_SUBSTITUTION
(int _error)
Function Documentation
◆
BOOST_PREVENT_MACRO_SUBSTITUTION()
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
}
Generated on Sun Feb 12 2017 10:25:22 for DGtal by
1.8.13