Linear Containers API Reference
Linked lists and Queues
Configuration

Configuration settings of the linear containers library.

Configuration settings are C pre-processor constants. They can be set with a #define in the config file (iot_config.h) or by using a compiler option such as -D in gcc. If a configuration setting is not defined, the library will use a "sensible" default value (unless otherwise noted). Because they are compile-time constants, a library must be rebuilt if a configuration setting is changed.

configpagemarker

IOT_CONTAINERS_ENABLE_ASSERTS

Set this to 1 to perform sanity checks when using linear containers.

Asserts are useful for debugging, but should be disabled in production code. If this is set to 1, IotContainers_Assert can be defined to set the assertion function; otherwise, the Iot_DefaultAssert will be used.

Possible values: 0 (asserts disabled) or 1 (asserts enabled)
Recommended values: 1 when debugging; 0 in production code.
Default value (if undefined): 0

IotContainers_Assert

Assertion function used when IOT_CONTAINERS_ENABLE_ASSERTS is 1.

Possible values: Any function with the same signature as the standard library's assert function.
Default value (if undefined): Iot_DefaultAssert if IOT_CONTAINERS_ENABLE_ASSERTS is 1; otherwise, nothing. If Iot_DefaultAssert is not defined when asserts are enabled, the containers library will fail to build.