Various macros for configuring QP/C (typically used as command-line options)
More...
Go to the source code of this file.
◆ Q_NASSERT
The preprocessor switch to disable checking assertions
- Description
- When defined, Q_NASSERT disables the following macros Q_ASSERT, Q_REQUIRE, Q_ENSURE, Q_INVARIANT, Q_ERROR as well as Q_ASSERT_ID, Q_REQUIRE_ID, Q_ENSURE_ID, Q_INVARIANT_ID, and Q_ERROR_ID do not evaluate the test condition passed as the argument to these macros.
- Note
- The notable exceptions are the macros Q_ALLEGE and Q_ALLEGE_ID, that still evaluate the test condition, but do not report assertion failures when the switch Q_NASSERT is defined.
Definition at line 20 of file config.h.
◆ QF_ACTIVE_STOP
Enable the QActive_stop() API in the QF port.
- Description
- Defining this macro enables the QActive_stop() API in a given port. This feature should be used with caution, as stopping and re-starting active objects cleanly can be tricky.
Definition at line 29 of file config.h.
◆ Q_SPY
The preprocessor switch to activate the QS software tracing instrumentation in the code
- Description
- 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 39 of file config.h.
◆ Q_UTEST
The preprocessor switch to activate the QUTest unit testing instrumentation in the code
- Note
- This macro requires that Q_SPY be defined as well.
Definition at line 47 of file config.h.
◆ Q_EVT_CTOR
The preprocessor switch to enable constructor in the QEvt class instrumentation in the code
- Traceability
-
Definition at line 55 of file config.h.
◆ QF_ON_CONTEXT_SW
This macro enables calling the context-switch callback QF_onContextSw() in all build-in kernels (QV, QK, QXK)
Definition at line 60 of file config.h.