Skip to content

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

@swoisz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions