DATRW++ library: seismic data I/O with multiple formats

◆ DATRW_Xassert

#define DATRW_Xassert (   C,
  M,
 
)
Value:
if (!(C)) { \
{ \
std::ostringstream oss; \
oss << M; \
throw( E ( oss.str() , __FILE__, __LINE__, #C )); \
} \
}

Check an assertion and report by throwing an exception.

Parameters
Cassert condition
Mmessage (may use output operators; possibly containing newline characters)
Eexception class to throw

Definition at line 76 of file error.h.

Referenced by datrw::isustream::fseries(), main(), datrw::su::SUheader::read(), and datrw::isustream::skipseries().