SERIAL++ library: simple serial port access
Error handling module

Classes

class  serialport::Exception
 Base class for exceptions. More...
 

Macros

#define SERIALPORT_Xassert(C, M, E)   if (!(C)) { throw( E ( M , __FILE__, __LINE__, #C )); }
 Check an assertion and report by throwing an exception. More...
 
#define SERIALPORT_assert(C, M)   SERIALPORT_Xassert( C , M , serialport::Exception )
 Check an assertion and report by throwing an exception. More...
 
#define SERIALPORT_abort(M)   throw( serialport::Exception ( M , __FILE__, __LINE__ ))
 Abort and give a message. More...
 
#define SERIALPORT_report_assert(C, M, V)
 Check an assertion and report only. More...
 
#define SERIALPORT_nonfatal_assert(F, C, M, V)   if (F) { SERIALPORT_report_assert(C,M,V) } else { SERIALPORT_assert(C,M) }
 Macro to distinguish between fatal and non fatal assertions. More...
 

Functions

void serialport::report_violation (const char *message, const char *file, const int &line, const char *condition)
 report violation of assertion More...
 

Detailed Description