Compile-time configuration#

User-overridable compile-time configuration options.

This header also contains some logic for platform auto-detection. Some features (such as the log framework) are automatically enabled/disabled depending on the platform.

Author

Andreas Stöckel (Applied Brain Research)

Defines

ABR_SDK_PLATFORM_POSIX#

Defined if the target platform supports the portable operating system interface (POSIX).

This is, for example, the case on Linux, Android and MacOS.

ABR_SDK_PLATFORM_ANDROID#

Defined in addition to ABR_SDK_PLATFORM_POSIX when we’re on Android.

ABR_SDK_PLATFORM_LINUX#

Defined in addition to ABR_SDK_PLATFORM_POSIX when we’re on Linux.

ABR_SDK_PLATFORM_HOSTED#

Defined if the target platform is a full operating system.

ABR_SDK_LOG_ENABLED#

ABR_SDK_LOG_ENABLED may be set to zero to disable the optional logging functionality.

Logging is automatically disabled on embedded platforms.

ABR_SDK_DEFAULT_LOG_LEVEL#

Default log level for the optional logging framework.

Messages with a lower priority are silently discarded.

ABR_SDK_LOG_BUFFER_SIZE#

Maximum message size that can be logged in the optional abr_log logging framework.