regen single header with __debugbreak fix

This commit is contained in:
Phil Nash 2011-07-04 09:14:15 +01:00
parent 3d244adf22
commit d6566f9d2f
1 changed files with 1 additions and 1 deletions

View File

@ -968,7 +968,7 @@ namespace Catch
inline void BreakIntoDebugger(){} inline void BreakIntoDebugger(){}
#endif #endif
#elif defined(CATCH_PLATFORM_WINDOWS) #elif defined(_MSC_VER)
extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent(); extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent();
extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA( const char* ); extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA( const char* );
#define BreakIntoDebugger() if (IsDebuggerPresent() ) { __debugbreak(); } #define BreakIntoDebugger() if (IsDebuggerPresent() ) { __debugbreak(); }