Skip to content

Commit

Permalink
Compatibility changes with Catch2 3.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Poldraunic committed Sep 28, 2024
1 parent 4aa3086 commit 0189fa3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions config/catch/CatchFakeit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@ namespace fakeit {
INTERNAL_CATCH_TRY { \
CATCH_INTERNAL_START_WARNINGS_SUPPRESSION \
CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS \
catchAssertionHandler.handleMessage(resultWas, fomattedMessage); \
catchAssertionHandler.handleMessage(resultWas, std::move(fomattedMessage)); \
CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION \
} INTERNAL_CATCH_CATCH(catchAssertionHandler) { \
INTERNAL_CATCH_REACT(catchAssertionHandler) \
catchAssertionHandler.complete(); \
}
#else
INTERNAL_CATCH_TRY { \
CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS \
catchAssertionHandler.handleMessage(resultWas, fomattedMessage); \
catchAssertionHandler.handleMessage(resultWas, std::move(fomattedMessage)); \
CATCH_INTERNAL_UNSUPPRESS_PARENTHESES_WARNINGS \
} INTERNAL_CATCH_CATCH(catchAssertionHandler) { \
INTERNAL_CATCH_REACT(catchAssertionHandler) \
catchAssertionHandler.complete(); \
}
#endif
}
Expand Down
8 changes: 4 additions & 4 deletions single_header/catch/fakeit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1207,18 +1207,18 @@ namespace fakeit {
INTERNAL_CATCH_TRY { \
CATCH_INTERNAL_START_WARNINGS_SUPPRESSION \
CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS \
catchAssertionHandler.handleMessage(resultWas, fomattedMessage); \
catchAssertionHandler.handleMessage(resultWas, std::move(fomattedMessage); \
CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION \
} INTERNAL_CATCH_CATCH(catchAssertionHandler) { \
INTERNAL_CATCH_REACT(catchAssertionHandler) \
catchAssertionHandler.complete(); \
}
#else
INTERNAL_CATCH_TRY { \
CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS \
catchAssertionHandler.handleMessage(resultWas, fomattedMessage); \
catchAssertionHandler.handleMessage(resultWas, std::move(fomattedMessage)); \
CATCH_INTERNAL_UNSUPPRESS_PARENTHESES_WARNINGS \
} INTERNAL_CATCH_CATCH(catchAssertionHandler) { \
INTERNAL_CATCH_REACT(catchAssertionHandler) \
catchAssertionHandler.complete(); \
}
#endif
}
Expand Down

0 comments on commit 0189fa3

Please sign in to comment.