LibreOffice Module comphelper (master) 1
debuggerinfo.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 */
9
10#ifndef INCLUDED_COMPHELPER_DEBUGINFO_HXX
11#define INCLUDED_COMPHELPER_DEBUGINFO_HXX
12
14
15namespace comphelper
16{
17#if defined DBG_UTIL
23#endif
24
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 )
33
34} // namespace comphelper
35
36#endif // INCLUDED_COMPHELPER_DEBUGINFO_HXX
37
38/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define COMPHELPER_DLLPUBLIC
bool isDebuggerAttached()
Returns true if the process is running with a debugger attached.