AnsweredAssumed Answered

How assert_param macro work

Question asked by hobb.epy on May 29, 2016
Latest reply on May 30, 2016 by FTITI.Walid
Hi,
I m using cubemx for stacks. In files i found assert_param is used for parameter checking.
I don't understand how it is work.
Here is syntax and use of that.

#define assert_param(expr) ((void)0)
 
assert_param(IS_UART_WORD_LENGTH(huart->Init.WordLength));

what will happen in both cases like IS_UART_WORD_LENGTH returns 0 and 1.


Outcomes