//#include "Exception.ih"
// Custom includes
-#include <execinfo.h>
+#ifdef SENF_BACKTRACE
+ #include <execinfo.h>
+#endif
#include <sstream>
#include <senf/config.hh>
#include "Backtrace.hh"
#define prefix_
-///////////////////////////////cc.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
-///////////////////////////////////////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
// senf::Exception
-#ifdef SENF_DEBUG
+#ifdef SENF_BACKTRACE
prefix_ void senf::ExceptionMixin::addBacktrace()
{
void * entries[SENF_DEBUG_BACKTRACE_NUMCALLERS];
}
#endif
-///////////////////////////////////////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
// senf::Exception
prefix_ senf::Exception::~Exception()
return what_.c_str();
}
-///////////////////////////////////////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
// senf::SystemException
prefix_ void senf::SystemException::init(std::string const & descr, int code
if (! descr.empty()) (*this) << " " << descr;
}
-///////////////////////////////cc.e////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
#undef prefix_
\f