µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
Command Line Options

Definitions passed via the compiler command line. More...

#define DEBUG
 Enable debug support.
 
#define TRACE
 Enable trace support.
 
#define NDEBUG
 Disable assert support.
 

Detailed Description

Definitions passed via the compiler command line.

Most of the configuration options can be passed via the configuration file, but this requires each source file to include the configuration files. However some options are too important to be missed and should be passed via the compiler command line.

Macro Definition Documentation

◆ DEBUG

#define DEBUG

Enable debug support.

This definition must always be used in debug configurations.

Definition at line 26 of file os-app-config.h.

◆ NDEBUG

#define NDEBUG

Disable assert support.

This is the standard ISO/ANSI definition used to disable all assert() statements. Without this definition all assert() statements are active, regardless of the presence or absence of the DEBUG definition.

Assertions are a very valuable mechanism to detect out-of-range conditions, usually in debug configurations, but might add a significant overhead in code size, and a certain overhead in execution time.

It is recommended to always use NDEBUG in release configurations.

Definition at line 56 of file os-app-config.h.

◆ TRACE

#define TRACE

Enable trace support.

This definition can be used to enable trace support. Without this definition, all trace calls are inlined to empty statements.

It is recommended to use TRACE in debug configurations.

Definition at line 37 of file os-app-config.h.