mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Only use __debugbreak from MSVC (rather than any compiler on Windows)
This commit is contained in:
		@@ -86,7 +86,7 @@
 | 
				
			|||||||
        inline void BreakIntoDebugger(){}
 | 
					        inline void BreakIntoDebugger(){}
 | 
				
			||||||
    #endif
 | 
					    #endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#elif defined(CATCH_PLATFORM_WINDOWS)
 | 
					#elif defined(_MSC_VER)
 | 
				
			||||||
    extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent();
 | 
					    extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent();
 | 
				
			||||||
    extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA( const char* );
 | 
					    extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA( const char* );
 | 
				
			||||||
    #define BreakIntoDebugger() if (IsDebuggerPresent() ) { __debugbreak(); }
 | 
					    #define BreakIntoDebugger() if (IsDebuggerPresent() ) { __debugbreak(); }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user