Preprocessor macros that are usually defined on the command-line to the compiler . More...
Go to the source code of this file.
Macros | |
| #define | Q_UNSAFE |
| Disable the QP Functional Safety (FuSa) Subsystem. | |
| #define | Q_SPY |
| The preprocessor switch to activate the QS software tracing instrumentation in QP/C Framework and QP/C Application code. | |
| #define | Q_UTEST |
| The preprocessor switch to activate the QUTest testing instrumentation in QP/C Framework and QP/C Application code. | |
Preprocessor macros that are usually defined on the command-line to the compiler .
Definition in file cmd_options.h.
| #define Q_UNSAFE |
Disable the QP Functional Safety (FuSa) Subsystem.
Details
Defining the macro Q_UNSAFE (in the application-specific qp_config.h header file) disables most of the QP FuSa Subsystem, affecting the following facilities:
The intent of the Q_UNSAFE macro is to support verification (during development) that assertions (and more generally, Safety Functions) have no side effects on the primary functionality — and are truly independent from the nominal flow of control.
However, quite specifically, the Q_UNSAFE macro should not be used to permanently disable the QP/C FuSa Subsystem in the final, production release of the QP/C Application, especially in the context of a safety-related system.
Definition at line 35 of file cmd_options.h.
| #define Q_SPY |
The preprocessor switch to activate the QS software tracing instrumentation in QP/C Framework and QP/C Application code.
Details
When defined, Q_SPY activates the QS software tracing instrumentation. When Q_SPY is not defined, the QS instrumentation in the code does not generate any code.
Definition at line 46 of file cmd_options.h.
| #define Q_UTEST |
The preprocessor switch to activate the QUTest testing instrumentation in QP/C Framework and QP/C Application code.
Details
When defined, Q_UTEST activates the QUTest testing instrumentation, which also requires QS software tracing (see Q_SPY).
Also, the Q_UTEST macro can have a value that decides whether the QP/C Framework "stub" is included or not. The following values are supported:
Definition at line 64 of file cmd_options.h.