ztest: improve comments for ztest assert macros

Move params in comment about zassert and zassume macros.

Signed-off-by: Michał Barnaś <mb@semihalf.com>
This commit is contained in:
Michał Barnaś 2022-08-17 15:44:34 +02:00 committed by Anas Nashif
commit ce5985b9a1

View file

@ -127,8 +127,8 @@ static inline bool z_zassume(bool cond, const char *default_msg, const char *fil
* context of the test function. * context of the test function.
* *
* @param cond Condition to check * @param cond Condition to check
* @param msg Optional, can be NULL. Message to print if @a cond is false.
* @param default_msg Message to print if @a cond is false * @param default_msg Message to print if @a cond is false
* @param msg Optional, can be NULL. Message to print if @a cond is false.
*/ */
#define zassert(cond, default_msg, msg, ...) \ #define zassert(cond, default_msg, msg, ...) \
do { \ do { \
@ -158,8 +158,8 @@ static inline bool z_zassume(bool cond, const char *default_msg, const char *fil
* failures only. * failures only.
* *
* @param cond Condition to check * @param cond Condition to check
* @param msg Optional, can be NULL. Message to print if @a cond is false.
* @param default_msg Message to print if @a cond is false * @param default_msg Message to print if @a cond is false
* @param msg Optional, can be NULL. Message to print if @a cond is false.
*/ */
#define zassume(cond, default_msg, msg, ...) \ #define zassume(cond, default_msg, msg, ...) \
do { \ do { \