Merge pull request #81 from colonelsammy/master

Changes for MINGW32 debugger as requested
This commit is contained in:
Phil Nash 2012-05-10 13:44:55 -07:00
commit d53573c95a
1 changed files with 8 additions and 0 deletions

View File

@ -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; }