Skip to content

Assert rework

Chris Kay requested to merge github/fork/CJKay/assert-rework into master

This pull request reworks the way we handle asserts, making better use of the standard C library provisions as well as compiler and static analysis optimisation techniques.

All of the existing assertion helpers have been reworked, and two more have been introduced:

  • fwk_unexpected() for code that should not execute but is safe to do so
  • fwk_check() for expectations outside of branch conditions

Please see the Doxygen documentation for more information.

@manojkumar-arm The CI tests for N1SDP have been disabled as this PR breaks binary compatibility with the N1SDP sensor module. Please recompile this module and re-enable the N1SDP tests at your discretion.

Merge request reports