From 43bfe1ecb8fe8fb3ed37d2b0d6ab2246e5ab55ba Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Thu, 16 Jan 2014 21:35:41 +0100 Subject: always build an empty DbgUnhandledException, to allow debug=t builds without --enable-dbgutils --- tools/source/debug/debug.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tools') 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: */ -- cgit v1.2.3