Skip to content

__ASSERT should be compile-out-able via Kconfig (CONFIG_ASSERT) #33

Description

@swoisz

__ASSERT (sys/util.h) is currently always active (abort()) with no debug/release gate. Upstream Zephyr compiles asserts out when CONFIG_ASSERT=n.

Add the Kconfig (default matching upstream) and gate the macro. Audit call sites for side-effectful assert expressions first — anything doing work inside __ASSERT(...) breaks silently when compiled out.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomerszephyr-parityDivergence from upstream Zephyr API/semantics

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions