zephyr: expose new error-checking configs

This commit is contained in:
Eden Frosst 2026-10-08 19:06:54 +00:00
parent 1d67d8d2c0
commit 132f2c8f90
2 changed files with 8 additions and 0 deletions

View File

@ -4,5 +4,7 @@ if(CONFIG_ETL)
zephyr_compile_definitions_ifdef(CONFIG_ETL_DEBUG ETL_DEBUG)
zephyr_compile_definitions_ifdef(CONFIG_ETL_CHECK_PUSH_POP ETL_CHECK_PUSH_POP)
zephyr_compile_definitions_ifdef(CONFIG_ETL_CHECK_INDEX_OPERATOR ETL_CHECK_INDEX_OPERATOR)
zephyr_compile_definitions_ifdef(CONFIG_ETL_CHECK_EXTRA ETL_CHECK_EXTRA)
zephyr_compile_definitions_ifdef(CONFIG_ETL_LOG_ERRORS ETL_LOG_ERRORS)
endif()

View File

@ -13,6 +13,12 @@ config ETL_DEBUG
config ETL_CHECK_PUSH_POP
bool "Enable push/pop checks in ETL"
config ETL_CHECK_INDEX_OPERATOR
bool "Enable bounds checks on ETL operator[]"
config ETL_CHECK_EXTRA
bool "Enable extra bounds and empty checks in ETL containers"
config ETL_LOG_ERRORS
bool "Call ETL error handler instead of assert"