Kaydet (Commit) 9cceba9a authored tarafından Noel Grandin's avatar Noel Grandin

make DBG_TESTSOLARMUTEX available in assert builds

where our QA people are more likely to trigger it

Change-Id: I4ce7c8c72e7e21f2296c0f9cc9f019aaef32ed0b
Reviewed-on: https://gerrit.libreoffice.org/58170
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst b3d28822
...@@ -35,7 +35,8 @@ ...@@ -35,7 +35,8 @@
standard assert. standard assert.
*/ */
#ifdef DBG_UTIL #ifndef NDEBUG
// we want the solar mutex checking to be enabled in the assert-enabled builds that the QA people use
typedef void (*DbgTestSolarMutexProc)(); typedef void (*DbgTestSolarMutexProc)();
...@@ -49,7 +50,6 @@ do \ ...@@ -49,7 +50,6 @@ do \
} while(false) } while(false)
#else #else
// NO DBG_UTIL
#define DBG_TESTSOLARMUTEX() ((void)0) #define DBG_TESTSOLARMUTEX() ((void)0)
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
#include <cxxabi.h> #include <cxxabi.h>
#endif #endif
#ifdef DBG_UTIL #ifndef NDEBUG
struct DebugData struct DebugData
{ {
......
...@@ -367,7 +367,7 @@ bool InitVCL() ...@@ -367,7 +367,7 @@ bool InitVCL()
// Set exception handler // Set exception handler
pExceptionHandler = osl_addSignalHandler(VCLExceptionSignal_impl, nullptr); pExceptionHandler = osl_addSignalHandler(VCLExceptionSignal_impl, nullptr);
#ifdef DBG_UTIL #ifndef NDEBUG
DbgGUIInitSolarMutexCheck(); DbgGUIInitSolarMutexCheck();
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment