diff options
Diffstat (limited to 'cpp/src/IceUtil/Exception.cpp')
-rw-r--r-- | cpp/src/IceUtil/Exception.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cpp/src/IceUtil/Exception.cpp b/cpp/src/IceUtil/Exception.cpp index 3ada15e03d7..a2f973fc979 100644 --- a/cpp/src/IceUtil/Exception.cpp +++ b/cpp/src/IceUtil/Exception.cpp @@ -21,6 +21,13 @@ using namespace std; +namespace IceUtilInternal +{ + +bool printStackTraces = false; + +} + namespace { @@ -62,6 +69,11 @@ getStackTrace() { string stackTrace; + if(!IceUtilInternal::printStackTraces) + { + return stackTrace; + } + const size_t maxDepth = 100; void *stackAddrs[maxDepth]; |