diff options
| author | Martin Hořeňovský | 2019-08-09 10:50:53 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2019-08-09 10:50:53 +0200 |
| commit | 738818ae1d286ad793ea37e1b3836e3191663e4d (patch) | |
| tree | 0788694c17b0fb12311f92deb89b9a827329d407 /include | |
| parent | 2c869e17e4803d30b3d5ca5b0d76387b9db97fa5 (diff) | |
| download | catch3-738818ae1d286ad793ea37e1b3836e3191663e4d.tar.gz | |
Add a test for the internals
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_enforce.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/internal/catch_enforce.h b/include/internal/catch_enforce.h index ad11c815..0484724d 100644 --- a/include/internal/catch_enforce.h +++ b/include/internal/catch_enforce.h @@ -38,13 +38,13 @@ namespace Catch { (Catch::ReusableStringStream() << __VA_ARGS__).str() #define CATCH_INTERNAL_ERROR(...) \ - Catch::throw_logic_error(CATCH_MAKE_MSG( CATCH_INTERNAL_LINEINFO << ": Internal Catch2 error: " << __VA_ARGS__)); + Catch::throw_logic_error(CATCH_MAKE_MSG( CATCH_INTERNAL_LINEINFO << ": Internal Catch2 error: " << __VA_ARGS__)) #define CATCH_ERROR(...) \ - Catch::throw_domain_error(CATCH_MAKE_MSG( __VA_ARGS__ )); + Catch::throw_domain_error(CATCH_MAKE_MSG( __VA_ARGS__ )) #define CATCH_RUNTIME_ERROR(...) \ - Catch::throw_runtime_error(CATCH_MAKE_MSG( __VA_ARGS__ )); + Catch::throw_runtime_error(CATCH_MAKE_MSG( __VA_ARGS__ )) #define CATCH_ENFORCE( condition, ... ) \ do{ if( !(condition) ) CATCH_ERROR( __VA_ARGS__ ); } while(false) |