mirror of https://github.com/catchorg/Catch2.git
Fixed Visual Studio analyze warning about inconsistent annotation.
This commit is contained in:
parent
fad27a3364
commit
604275c06c
|
@ -82,7 +82,12 @@
|
||||||
#endif // Platform
|
#endif // Platform
|
||||||
|
|
||||||
#ifdef CATCH_PLATFORM_WINDOWS
|
#ifdef CATCH_PLATFORM_WINDOWS
|
||||||
extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA( const char* );
|
#if defined(_MSC_VER) && _MSC_VER >= 1700
|
||||||
|
#define CATCH_INTERNAL_WINDOWS_SAL_IN_OPT _In_opt_
|
||||||
|
#else
|
||||||
|
#define CATCH_INTERNAL_WINDOWS_SAL_IN_OPT
|
||||||
|
#endif
|
||||||
|
extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA( CATCH_INTERNAL_WINDOWS_SAL_IN_OPT const char* );
|
||||||
namespace Catch {
|
namespace Catch {
|
||||||
void writeToDebugConsole( std::string const& text ) {
|
void writeToDebugConsole( std::string const& text ) {
|
||||||
::OutputDebugStringA( text.c_str() );
|
::OutputDebugStringA( text.c_str() );
|
||||||
|
|
Loading…
Reference in New Issue