projects
/
senf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Utils: Add backtrace to exception message in SENF_DEBUG builds
[senf.git]
/
Utils
/
Exception.cci
diff --git
a/Utils/Exception.cci
b/Utils/Exception.cci
index
b745f80
..
1b611a2
100644
(file)
--- a/
Utils/Exception.cci
+++ b/
Utils/Exception.cci
@@
-32,7
+32,11
@@
prefix_ senf::Exception::Exception(std::string const & description)
: message_(description)
-{}
+{
+#ifdef SENF_DEBUG
+ addBacktrace();
+#endif
+}
prefix_ std::string const & senf::Exception::message()
const