Question
How assert_param macro work
Posted on May 29, 2016 at 09:50
Hi,
I m using cubemx for stacks. In files i foundassert_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.
#printf #assert #!cubemx #cubemx #debug