Definitions passed via the compiler command line. More...
| #define | DEBUG |
| Enable debug support. | |
| #define | TRACE |
| Enable trace support. | |
| #define | NDEBUG |
| Disable assert support. | |
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.
| #define DEBUG |
This definition must always be used in debug configurations.
Definition at line 26 of file os-app-config.h.
| #define NDEBUG |
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.
| #define TRACE |
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.