diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-08 12:32:34 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-09 06:48:35 +0000 |
commit | 6ab52cbb0ef1d2d08938d9355300155dbbb691fe (patch) | |
tree | a16ad227e5fb0cfc4b3a952ed0ec304d2f8de92c /include/tools/debug.hxx | |
parent | 10aaf339862776c9906e195d34c238187f0ea6ac (diff) |
reduce "no DbgTestSolarMutex function set" warning
Change-Id: I68c67e77a2759c8542dd4a44a78a9fcf8aa7dcc0
Reviewed-on: https://gerrit.libreoffice.org/26056
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/tools/debug.hxx')
-rw-r--r-- | include/tools/debug.hxx | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/include/tools/debug.hxx b/include/tools/debug.hxx index 4ad90223e52f..3f5d68a670e4 100644 --- a/include/tools/debug.hxx +++ b/include/tools/debug.hxx @@ -39,21 +39,13 @@ typedef void (*DbgTestSolarMutexProc)(); -// Dbg prototypes -#define DBG_FUNC_SETTESTSOLARMUTEX 2 -#define DBG_FUNC_TESTSOLARMUTEX 3 +TOOLS_DLLPUBLIC void DbgSetTestSolarMutex( DbgTestSolarMutexProc pParam ); +TOOLS_DLLPUBLIC void DbgTestSolarMutex(); -TOOLS_DLLPUBLIC void* DbgFunc( sal_uInt16 nAction, void* pData = nullptr ); - -inline void DbgSetTestSolarMutex( DbgTestSolarMutexProc pProc ) -{ - DbgFunc( DBG_FUNC_SETTESTSOLARMUTEX, reinterpret_cast<void*>(reinterpret_cast<sal_uIntPtr>(pProc)) ); -} - -#define DBG_TESTSOLARMUTEX() \ -do \ -{ \ - DbgFunc(DBG_FUNC_TESTSOLARMUTEX); \ +#define DBG_TESTSOLARMUTEX() \ +do \ +{ \ + DbgTestSolarMutex(); \ } while(false) #else |