libcsdbg  1.28
C++ exception (and generic) stack trace debug library
std::ostream & operator<< ( std::ostream &  lval,
const std::exception &  rval 

Stream insertion operator for std::exception objects.

[in]lvalthe output stream
[in]rvalthe object to output
its first argument

Definition at line 23 of file exception.cpp.

24 {
25  util::lock();
26  util::header(lval, "x");
27  lval << rval.what() << "\r\n";
28  util::unlock();
29  return lval;
30 }
static void lock()
Lock the global access mutex.
Definition: util.cpp:397
static void unlock()
Unlock the global access mutex.
Definition: util.cpp:406
static void header(std::ostream &, const i8 *)
Print a tagged message header on an output stream.
Definition: util.cpp:594