Files
externals/linux/include/ActivBoost/winapi/debugapi.hpp
T
2023-12-15 13:15:08 -05:00

62 lines
1.5 KiB
C++

/*
* 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 <ActivBoost/winapi/basic_types.hpp>
#include <ActivBoost/winapi/config.hpp>
#include <ActivBoost/winapi/detail/header.hpp>
#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 <ActivBoost/winapi/detail/footer.hpp>
#endif // ACTIV_BOOST_WINAPI_DEBUGAPI_HPP_INCLUDED_