forked from catchorg/Catch2
Added attribution for __debugbreak()
This commit is contained in:
@@ -78,9 +78,10 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined(__WIN32__) && defined(_MSC_VER)
|
#elif defined(__WIN32__) && defined(_MSC_VER)
|
||||||
extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent();
|
// Thanks to jalfd for the following:
|
||||||
#define BreakIntoDebugger() if (IsDebuggerPresent() ) { __debugbreak(); }
|
extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent();
|
||||||
|
#define BreakIntoDebugger() if (IsDebuggerPresent() ) { __debugbreak(); }
|
||||||
#else
|
#else
|
||||||
inline void BreakIntoDebugger(){}
|
inline void BreakIntoDebugger(){}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user