mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-06-19 10:48:01 +00:00
Write documentation for TEST_ASSERT
This commit is contained in:
parent
159ebf3b8e
commit
8954d0c274
|
@ -69,6 +69,18 @@ typedef struct data_tag
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
/* Macros */
|
/* Macros */
|
||||||
|
|
||||||
|
/** Evaluate an expression and fail the test case if it is false.
|
||||||
|
*
|
||||||
|
* Failing the test means:
|
||||||
|
* - Mark this test case as failed.
|
||||||
|
* - Print a message identifying the failure.
|
||||||
|
* - Jump to the \c exit label.
|
||||||
|
*
|
||||||
|
* This macro expands to an instruction, not an expression.
|
||||||
|
* It may jump to the \c exit label.
|
||||||
|
*
|
||||||
|
* \param TEST The expression to evaluate.
|
||||||
|
*/
|
||||||
#define TEST_ASSERT( TEST ) \
|
#define TEST_ASSERT( TEST ) \
|
||||||
do { \
|
do { \
|
||||||
if( ! (TEST) ) \
|
if( ! (TEST) ) \
|
||||||
|
|
Loading…
Reference in a new issue