Fixed Visual Studio analyze warning about inconsistent annotation.

This commit is contained in:
Zachary Struck 2016-08-21 20:21:42 -04:00
parent fad27a3364
commit 604275c06c
1 changed files with 6 additions and 1 deletions

View File

@ -82,7 +82,12 @@
#endif // Platform
#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 {
void writeToDebugConsole( std::string const& text ) {
::OutputDebugStringA( text.c_str() );