android: Update app-specific/MIME type icons
[LibreOffice.git] / include / comphelper / debuggerinfo.hxx
blob8c4c0a4cb2c6da8b0036813090badc728ea97bc1
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef INCLUDED_COMPHELPER_DEBUGINFO_HXX
11 #define INCLUDED_COMPHELPER_DEBUGINFO_HXX
13 #include <comphelper/comphelperdllapi.h>
15 namespace comphelper
17 #if defined DBG_UTIL
18 /// Returns true if the process is running with a debugger attached.
19 ///
20 /// This is useful to disable watchdogs or increase timeouts if they trigger
21 /// too soon while using a debugger.
22 COMPHELPER_DLLPUBLIC bool isDebuggerAttached();
23 #endif
25 // For detecting whether Valgrind is used, add valgrind to gb_Library_use_externals
26 // and then in code use:
27 // #if defined HAVE_VALGRIND_HEADERS
28 // #include <valgrind/memcheck.h>
29 // #endif
30 // ...
31 // #if defined HAVE_VALGRIND_HEADERS
32 // if( RUNNING_ON_VALGRIND )
34 } // namespace comphelper
36 #endif // INCLUDED_COMPHELPER_DEBUGINFO_HXX
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */