summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-01-16 21:35:41 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-01-16 21:45:17 +0100
commit43bfe1ecb8fe8fb3ed37d2b0d6ab2246e5ab55ba (patch)
tree1a17fab3a7b2c885fb94042433c202dadca15f60 /tools
parenta0fdc73984d0eb89eacbcd858db938ad5cf1157d (diff)
always build an empty DbgUnhandledException, to allow debug=t builds without --enable-dbgutils
Diffstat (limited to 'tools')
-rw-r--r--tools/source/debug/debug.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/source/debug/debug.cxx b/tools/source/debug/debug.cxx
index 19e789c97e58..4a148b483777 100644
--- a/tools/source/debug/debug.cxx
+++ b/tools/source/debug/debug.cxx
@@ -1588,10 +1588,9 @@ void DbgOutf( const sal_Char*, ... ) {}
#endif
-#if OSL_DEBUG_LEVEL > 0
-
TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any & caught, const char* currentFunction, const char* fileAndLineNo)
{
+#if OSL_DEBUG_LEVEL > 0
OString sMessage( "caught an exception!" );
sMessage += "\nin function:";
sMessage += currentFunction;
@@ -1633,9 +1632,9 @@ TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any & caught, const c
SAL_DETAIL_LOG_FORMAT(
SAL_DETAIL_ENABLE_LOG_WARN, SAL_DETAIL_LOG_LEVEL_WARN,
"legacy.osl", fileAndLineNo, "%s", sMessage.getStr());
+#endif
}
-#endif // OSL_DEBUG_LEVEL
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */