CubeMX assert_param() vs assert()
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-26 2:11 PM
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.
Solved! Go to Solution.
Labels:
- Labels:
-
STM32CubeMCUPackages (Cube FW)
1 ACCEPTED SOLUTION
Accepted Solutions
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-26 2:41 PM
Never-mind - I found a stupid simple solution:
Put my own assert.h in the include path.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-26 2:41 PM
Never-mind - I found a stupid simple solution:
Put my own assert.h in the include path.
