LibreOffice Module comphelper (master)
1
include
comphelper
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
13
#include <
comphelper/comphelperdllapi.h
>
14
15
namespace
comphelper
16
{
17
#if defined DBG_UTIL
22
COMPHELPER_DLLPUBLIC
bool
isDebuggerAttached
();
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: */
comphelperdllapi.h
COMPHELPER_DLLPUBLIC
#define COMPHELPER_DLLPUBLIC
Definition:
comphelperdllapi.h:27
comphelper
comphelper::isDebuggerAttached
bool isDebuggerAttached()
Returns true if the process is running with a debugger attached.
Definition:
debuggerinfo.cxx:31
Generated on Sun Jul 30 2023 04:30:35 for LibreOffice Module comphelper (master) by
1.9.3