diff options
| author | khyperia | 2020-01-27 15:43:27 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-02-16 15:27:21 +0100 |
| commit | e880da93bd335e59a0d4b00bfcb9f06ab4b7c847 (patch) | |
| tree | f22f39a1864fa5190c43c1512cc5151d9a3d560d /src/catch2/catch_debugger.h | |
| parent | 3e01d4b239dd14c97f53988c15362ae0c32406a2 (diff) | |
| download | catch3-e880da93bd335e59a0d4b00bfcb9f06ab4b7c847.tar.gz | |
Make CATCH_BREAK_INTO_DEBUGGER be user-configurable
Diffstat (limited to 'src/catch2/catch_debugger.h')
| -rw-r--r-- | src/catch2/catch_debugger.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/catch2/catch_debugger.h b/src/catch2/catch_debugger.h index 96925fc9..8c2abef3 100644 --- a/src/catch2/catch_debugger.h +++ b/src/catch2/catch_debugger.h @@ -48,10 +48,12 @@ namespace Catch { #define CATCH_TRAP() DebugBreak() #endif -#ifdef CATCH_TRAP - #define CATCH_BREAK_INTO_DEBUGGER() []{ if( Catch::isDebuggerActive() ) { CATCH_TRAP(); } }() -#else - #define CATCH_BREAK_INTO_DEBUGGER() []{}() +#ifndef CATCH_BREAK_INTO_DEBUGGER + #ifdef CATCH_TRAP + #define CATCH_BREAK_INTO_DEBUGGER() []{ if( Catch::isDebuggerActive() ) { CATCH_TRAP(); } }() + #else + #define CATCH_BREAK_INTO_DEBUGGER() []{}() + #endif #endif #endif // TWOBLUECUBES_CATCH_DEBUGGER_H_INCLUDED |