Skip to main content
Associate II
June 26, 2023
Solved

CubeMX assert_param() vs assert()

I have some re-used and portable code that uses <assert.h> and assert().

Is there a way I can easily map assert() to the assert_param() used by CubeMX?

Seems so simple but it is giving me a hard time, and I don't see anything available online about this.

This topic has been closed for replies.
da66enBest answer
Associate II
June 26, 2023

Never-mind - I found a stupid simple solution:

Put my own assert.h in the include path.

1 reply

da66enAuthorBest answer
Associate II
June 26, 2023

Never-mind - I found a stupid simple solution:

Put my own assert.h in the include path.