mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-25 22:19:25 +00:00
Add support for MINGW32 debugger
This commit is contained in:
parent
aec1e5ed86
commit
9e17c807bc
1 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue