]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/winapi/debugapi.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / winapi / debugapi.hpp
1 /*
2 * Copyright 2017 Vinnie Falco
3 *
4 * Distributed under the Boost Software License, Version 1.0.
5 * See http://www.boost.org/LICENSE_1_0.txt
6 */
7
8 #ifndef BOOST_WINAPI_DEBUGAPI_HPP_INCLUDED_
9 #define BOOST_WINAPI_DEBUGAPI_HPP_INCLUDED_
10
11 #include <boost/winapi/basic_types.hpp>
12 #include <boost/winapi/config.hpp>
13
14 #ifdef BOOST_HAS_PRAGMA_ONCE
15 #pragma once
16 #endif
17
18 #if !defined( BOOST_USE_WINDOWS_H )
19 extern "C" {
20
21 #if (BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_NT4)
22 BOOST_SYMBOL_IMPORT boost::winapi::BOOL_ WINAPI
23 IsDebuggerPresent(BOOST_WINAPI_DETAIL_VOID);
24 #endif
25
26 BOOST_SYMBOL_IMPORT boost::winapi::VOID_ WINAPI
27 OutputDebugStringA(boost::winapi::LPCSTR_);
28
29 BOOST_SYMBOL_IMPORT boost::winapi::VOID_ WINAPI
30 OutputDebugStringW(boost::winapi::LPCWSTR_);
31
32 } // extern "C"
33 #endif
34
35 namespace boost {
36 namespace winapi {
37
38 #if (BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_NT4)
39 using ::IsDebuggerPresent;
40 #endif
41
42 using ::OutputDebugStringA;
43 using ::OutputDebugStringW;
44
45 BOOST_FORCEINLINE void output_debug_string(char const* s)
46 {
47 ::OutputDebugStringA(s);
48 }
49
50 BOOST_FORCEINLINE void output_debug_string(wchar_t const* s)
51 {
52 ::OutputDebugStringW(s);
53 }
54
55 }
56 }
57
58 #endif // BOOST_WINAPI_DEBUGAPI_HPP_INCLUDED_