mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Change CATCH_BREAK_INTO_DEBUGGER to always expand into a function call
This avoids -Wextra-semi-stmt warning inside our code
This commit is contained in:
		| @@ -38,12 +38,9 @@ namespace Catch { | ||||
| #endif | ||||
|  | ||||
| #ifdef CATCH_TRAP | ||||
|     #define CATCH_BREAK_INTO_DEBUGGER() if( Catch::isDebuggerActive() ) { CATCH_TRAP(); } | ||||
|     #define CATCH_BREAK_INTO_DEBUGGER() []{ if( Catch::isDebuggerActive() ) { CATCH_TRAP(); } }() | ||||
| #else | ||||
|     namespace Catch { | ||||
|         inline void doNothing() {} | ||||
|     } | ||||
|     #define CATCH_BREAK_INTO_DEBUGGER() Catch::doNothing() | ||||
|     #define CATCH_BREAK_INTO_DEBUGGER() []{}() | ||||
| #endif | ||||
|  | ||||
| #endif // TWOBLUECUBES_CATCH_DEBUGGER_H_INCLUDED | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský