cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX assert_param() vs assert()

da66en
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
da66en
Associate II

Never-mind - I found a stupid simple solution:

Put my own assert.h in the include path.

View solution in original post

1 REPLY 1
da66en
Associate II

Never-mind - I found a stupid simple solution:

Put my own assert.h in the include path.