CONFIG_ASSERT

Enable __ASSERT() macro

Type: bool

Help

This enables the __ASSERT() macro in the kernel code. If an assertion fails, the calling thread is put on an infinite tight loop. Since enabling this adds a significant footprint, it should only be enabled in a non-production system.

Defaults

Kconfig definition

At subsys/debug/Kconfig:132

Included via Kconfig:10Kconfig.zephyr:39subsys/Kconfig:14

Menu path: (top menu) → Debugging Options

config ASSERT
    bool
    prompt "Enable __ASSERT() macro"
    default "y" if TEST
    help
      This enables the __ASSERT() macro in the kernel code. If an assertion
      fails, the calling thread is put on an infinite tight loop. Since
      enabling this adds a significant footprint, it should only be enabled
      in a non-production system.

(Definitions include propagated dependencies, including from if’s and menus.)