summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/UtilException.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceUtil/UtilException.cpp')
-rw-r--r--cpp/src/IceUtil/UtilException.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/IceUtil/UtilException.cpp b/cpp/src/IceUtil/UtilException.cpp
index 450174ec274..96bcc813958 100644
--- a/cpp/src/IceUtil/UtilException.cpp
+++ b/cpp/src/IceUtil/UtilException.cpp
@@ -74,7 +74,12 @@ using namespace std;
namespace IceUtilInternal
{
+#ifdef NDEBUG
bool ICE_API printStackTraces = false;
+#else
+bool ICE_API printStackTraces = true;
+#endif
+
bool ICE_API nullHandleAbort = false;
StackTraceImpl
@@ -477,7 +482,7 @@ getStackTrace(const vector<void*>& stackFrames)
{
s << " at "
#ifdef DBGHELP_TRANSLATE_TCHAR
- << IceUtil::wstringToString(line.FileName, converter)
+ << IceUtil::wstringToString(line.FileName, converter)
#else
<< line.FileName
#endif