mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Added attribution for __debugbreak()
This commit is contained in:
parent
73acd945cd
commit
ab30ab6b76
@ -79,6 +79,7 @@
|
||||
#endif
|
||||
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user