-
CONFIG_ASSERT_LEVEL
¶
__ASSERT() level
Type: int
Help¶
This option specifies the assertion level used by the __ASSERT() macro. It can be set to one of three possible values:
Level 0: off Level 1: on + warning in every file that includes __assert.h Level 2: on + no warning
Kconfig definition¶
At subsys/debug/Kconfig:100
Included via Kconfig:10
→ Kconfig.zephyr:35
→ subsys/Kconfig:12
Menu path: (top menu) → Debugging Options
config ASSERT_LEVEL int prompt "__ASSERT() level" ifASSERT
range 0 2 ifASSERT
default 2 ifASSERT
depends onASSERT
help This option specifies the assertion level used by the __ASSERT() macro. It can be set to one of three possible values: Level 0: off Level 1: on + warning in every file that includes __assert.h Level 2: on + no warning
(Definitions include propagated dependencies, including from if’s and menus.)