mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 12:55:40 +02:00
Added attribution for __debugbreak()
This commit is contained in:
@@ -78,9 +78,10 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#elif defined(__WIN32__) && defined(_MSC_VER)
|
||||
extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent();
|
||||
#define BreakIntoDebugger() if (IsDebuggerPresent() ) { __debugbreak(); }
|
||||
#elif defined(__WIN32__) && defined(_MSC_VER)
|
||||
// Thanks to jalfd for the following:
|
||||
extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent();
|
||||
#define BreakIntoDebugger() if (IsDebuggerPresent() ) { __debugbreak(); }
|
||||
#else
|
||||
inline void BreakIntoDebugger(){}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user