Utils: Add backtrace to exception message in SENF_DEBUG builds
[senf.git] / Utils / Exception.cci
index b745f80..1b611a2 100644 (file)
 
 prefix_ senf::Exception::Exception(std::string const & description)
     : message_(description)
-{}
+{
+#ifdef SENF_DEBUG
+    addBacktrace();
+#endif
+}
 
 prefix_ std::string const & senf::Exception::message()
     const