Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:53:44

0001 /*
0002  * Copyright 2017 Vinnie Falco
0003  *
0004  * Distributed under the Boost Software License, Version 1.0.
0005  * See http://www.boost.org/LICENSE_1_0.txt
0006  */
0007 
0008 #ifndef BOOST_WINAPI_DEBUGAPI_HPP_INCLUDED_
0009 #define BOOST_WINAPI_DEBUGAPI_HPP_INCLUDED_
0010 
0011 #include <boost/winapi/basic_types.hpp>
0012 #include <boost/winapi/config.hpp>
0013 #include <boost/winapi/detail/header.hpp>
0014 
0015 #ifdef BOOST_HAS_PRAGMA_ONCE
0016 #pragma once
0017 #endif
0018 
0019 #if !defined( BOOST_USE_WINDOWS_H )
0020 extern "C" {
0021 
0022 #if (BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_NT4)
0023 BOOST_WINAPI_IMPORT_EXCEPT_WM boost::winapi::BOOL_ BOOST_WINAPI_WINAPI_CC
0024 IsDebuggerPresent(BOOST_WINAPI_DETAIL_VOID);
0025 #endif
0026 
0027 BOOST_WINAPI_IMPORT_EXCEPT_WM boost::winapi::VOID_ BOOST_WINAPI_WINAPI_CC
0028 OutputDebugStringA(boost::winapi::LPCSTR_);
0029 
0030 BOOST_WINAPI_IMPORT_EXCEPT_WM boost::winapi::VOID_ BOOST_WINAPI_WINAPI_CC
0031 OutputDebugStringW(boost::winapi::LPCWSTR_);
0032 
0033 } // extern "C"
0034 #endif
0035 
0036 namespace boost {
0037 namespace winapi {
0038 
0039 #if (BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_NT4)
0040 using ::IsDebuggerPresent;
0041 #endif
0042 
0043 using ::OutputDebugStringA;
0044 using ::OutputDebugStringW;
0045 
0046 BOOST_FORCEINLINE void output_debug_string(char const* s)
0047 {
0048     ::OutputDebugStringA(s);
0049 }
0050 
0051 BOOST_FORCEINLINE void output_debug_string(wchar_t const* s)
0052 {
0053     ::OutputDebugStringW(s);
0054 }
0055 
0056 }
0057 }
0058 
0059 #include <boost/winapi/detail/footer.hpp>
0060 
0061 #endif // BOOST_WINAPI_DEBUGAPI_HPP_INCLUDED_