mirror of
https://github.com/catchorg/Catch2.git
synced 2025-10-20 17:05:42 +02:00
added code to unwrap expression
This commit is contained in:
@@ -28,12 +28,21 @@
|
||||
resultBuilder.react();
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
#ifdef CATCH_CONFIG_VARIADIC_MACROS
|
||||
#define INTERNAL_CATCH_EVALUATE_EXPRESSION(...) \
|
||||
( __catchResult->* __VA_ARGS__ ).endExpression();
|
||||
#else
|
||||
#define INTERNAL_CATCH_EVALUATE_EXPRESSION(expr) \
|
||||
( __catchResult->* expr ).endExpression();
|
||||
#endif
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
#define INTERNAL_CATCH_TEST( expr, resultDisposition, macroName ) \
|
||||
do { \
|
||||
Catch::ResultBuilder __catchResult( macroName, CATCH_INTERNAL_LINEINFO, #expr, resultDisposition ); \
|
||||
try { \
|
||||
( __catchResult->*expr ).endExpression(); \
|
||||
INTERNAL_CATCH_EVALUATE_EXPRESSION expr \
|
||||
} \
|
||||
catch( ... ) { \
|
||||
__catchResult.useActiveException( Catch::ResultDisposition::Normal ); \
|
||||
|
Reference in New Issue
Block a user