/* * Copyright 2017 Vinnie Falco * * Distributed under the Boost Software License, Version 1.0. * See http://www.boost.org/LICENSE_1_0.txt */ #ifndef ACTIV_BOOST_WINAPI_DEBUGAPI_HPP_INCLUDED_ #define ACTIV_BOOST_WINAPI_DEBUGAPI_HPP_INCLUDED_ #include #include #include #ifdef ACTIV_BOOST_HAS_PRAGMA_ONCE #pragma once #endif #if !defined( ACTIV_BOOST_USE_WINDOWS_H ) extern "C" { #if (ACTIV_BOOST_USE_WINAPI_VERSION >= ACTIV_BOOST_WINAPI_VERSION_NT4) ACTIV_BOOST_WINAPI_IMPORT_EXCEPT_WM Boost::winapi::BOOL_ ACTIV_BOOST_WINAPI_WINAPI_CC IsDebuggerPresent(ACTIV_BOOST_WINAPI_DETAIL_VOID); #endif ACTIV_BOOST_WINAPI_IMPORT_EXCEPT_WM Boost::winapi::VOID_ ACTIV_BOOST_WINAPI_WINAPI_CC OutputDebugStringA(Boost::winapi::LPCSTR_); ACTIV_BOOST_WINAPI_IMPORT_EXCEPT_WM Boost::winapi::VOID_ ACTIV_BOOST_WINAPI_WINAPI_CC OutputDebugStringW(Boost::winapi::LPCWSTR_); } // extern "C" #endif namespace Boost { namespace winapi { #if (ACTIV_BOOST_USE_WINAPI_VERSION >= ACTIV_BOOST_WINAPI_VERSION_NT4) using ::IsDebuggerPresent; #endif using ::OutputDebugStringA; using ::OutputDebugStringW; ACTIV_BOOST_FORCEINLINE void output_debug_string(char const* s) { ::OutputDebugStringA(s); } ACTIV_BOOST_FORCEINLINE void output_debug_string(wchar_t const* s) { ::OutputDebugStringW(s); } } } #include #endif // ACTIV_BOOST_WINAPI_DEBUGAPI_HPP_INCLUDED_