]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/log/src/windows/is_debugger_present.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / log / src / windows / is_debugger_present.cpp
1 /*
2 * Copyright Andrey Semashev 2021.
3 * Distributed under the Boost Software License, Version 1.0.
4 * (See accompanying file LICENSE_1_0.txt or copy at
5 * http://www.boost.org/LICENSE_1_0.txt)
6 */
7 /*!
8 * \file is_debugger_present.cpp
9 * \author Andrey Semashev
10 * \date 18.09.2021
11 *
12 * \brief This header is the Boost.Log library implementation, see the library documentation
13 * at http://www.boost.org/doc/libs/release/libs/log/doc/html/index.html.
14 */
15
16 #include <boost/log/detail/config.hpp>
17 #include <boost/log/expressions/predicates/is_debugger_present.hpp>
18 #include <windows.h>
19 #include <boost/log/detail/header.hpp>
20
21 namespace boost {
22
23 BOOST_LOG_OPEN_NAMESPACE
24
25 namespace expressions {
26
27 namespace aux {
28
29 BOOST_LOG_API is_debugger_present::result_type is_debugger_present::operator() () const
30 {
31 return IsDebuggerPresent() != 0;
32 }
33
34 } // namespace aux
35
36 } // namespace expressions
37
38 BOOST_LOG_CLOSE_NAMESPACE // namespace log
39
40 } // namespace boost
41
42 #include <boost/log/detail/footer.hpp>