mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	Added attribution for __debugbreak()
This commit is contained in:
		@@ -79,6 +79,7 @@
 | 
				
			|||||||
    #endif
 | 
					    #endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#elif defined(__WIN32__) && defined(_MSC_VER)
 | 
					#elif defined(__WIN32__) && defined(_MSC_VER)
 | 
				
			||||||
 | 
					// Thanks to jalfd for the following:
 | 
				
			||||||
   extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent();
 | 
					   extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent();
 | 
				
			||||||
   #define BreakIntoDebugger() if (IsDebuggerPresent() ) { __debugbreak(); }
 | 
					   #define BreakIntoDebugger() if (IsDebuggerPresent() ) { __debugbreak(); }
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user