Skip to content

Commit

Permalink
Merge pull request #345 from Poldraunic/catch2-3.7.1-compatibility
Browse files Browse the repository at this point in the history
Catch2 3.7.1 compatibility
  • Loading branch information
FranckRJ authored Oct 6, 2024
2 parents 4aa3086 + 0189fa3 commit 82d53c6
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 82d53c6

Please sign in to comment.