mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-23 03:43:28 +01:00
Merge pull request #81 from colonelsammy/master
Changes for MINGW32 debugger as requested
This commit is contained in:
commit
d53573c95a
@ -95,6 +95,14 @@
|
||||
{
|
||||
return IsDebuggerPresent() != 0;
|
||||
}
|
||||
#elif defined(__MINGW32__)
|
||||
extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent();
|
||||
extern "C" __declspec(dllimport) void __stdcall DebugBreak();
|
||||
#define BreakIntoDebugger() if (IsDebuggerPresent() ) { DebugBreak(); }
|
||||
inline bool isDebuggerActive()
|
||||
{
|
||||
return IsDebuggerPresent() != 0;
|
||||
}
|
||||
#else
|
||||
inline void BreakIntoDebugger(){}
|
||||
inline bool isDebuggerActive() { return false; }
|
||||
|
Loading…
Reference in New Issue
Block a user