Add ASSERT_PARAM() macro.
Allows adding a parameter to a function that is used only for assertions.
@@ -39,11 +39,16 @@ Asserts are used in test code to ensure that certain conditions are true. They
// Declare variables that will be used by later assertions with the goal of making them easier to read and maintain
#define ASSERT_DECLARE(declaration) \
declaration
+
+ // Add a parameter to a function that is only used by assertions
+ #define ASSERT_PARAM(param) \
+ , param
#else
#define ASSERT(condition)
#define ASSERT_INLINE(condition)
#define ASSERT_MSG(message)
#define ASSERT_DECLARE(declaration)
+ #define ASSERT_PARAM(param)
#endif
/***********************************************************************************************************************************
