catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Only use __debugbreak from MSVC (rather than any compiler on Windows)
- Commit
7cfe6eb078aa70868b1f5c320c08cb113d3e6135- Author
- Phil Nash ·
- Parents
1adebefb50d3
Changes
include/internal/catch_debugger.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/internal/catch_debugger.hpp b/include/internal/catch_debugger.hpp index d318ab2c..54e4f67c 100644 --- a/include/internal/catch_debugger.hpp +++ b/include/internal/catch_debugger.hpp @@ -86,7 +86,7 @@ inline void BreakIntoDebugger(){} #endif -#elif defined(CATCH_PLATFORM_WINDOWS) +#elif defined(_MSC_VER) extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent(); extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA( const char* ); #define BreakIntoDebugger() if (IsDebuggerPresent() ) { __debugbreak(); }