Skip to main content
Explorer II
June 26, 2023
Solved

CubeMX assert_param() vs assert()

  • June 26, 2023
  • 1 reply
  • 1333 views

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.
    Best answer by da66en

    Never-mind - I found a stupid simple solution:

    Put my own assert.h in the include path.

    1 reply

    da66enAuthorAnswer
    Explorer II
    June 26, 2023

    Never-mind - I found a stupid simple solution:

    Put my own assert.h in the include path.