QP-nano  6.5.1
macros.h File Reference

macros for porting QP-nano, and command-line macros More...

Go to the source code of this file.

Macros

#define Q_NASSERT
 The preprocessor switch to disable checking assertions. More...
 
#define Q_TIMERSET
 
#define QK_ON_CONTEXT_SW
 This macro enables calling the QK-nano context-switch callback QK_onContextSw() More...
 
#define WIN32_GUI
 Macro that should be defined (typically on the compiler's command line) in the Win32-GUI applications that use the Win32-QV port. More...
 

Detailed Description

macros for porting QP-nano, and command-line macros

Definition in file macros.h.

Macro Definition Documentation

◆ Q_NASSERT

#define 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
One notable exception is the macro Q_ALLEGE, that still evaluates the test condition, but does not report assertion failures when the switch Q_NASSERT is defined.

Definition at line 20 of file macros.h.

◆ Q_TIMERSET

#define Q_TIMERSET
Deprecated:
macro to enable keeping track of QF time event usage; instead use: QF_TIMEEVT_USAGE

Definition at line 24 of file macros.h.

◆ QK_ON_CONTEXT_SW

#define QK_ON_CONTEXT_SW

This macro enables calling the QK-nano context-switch callback QK_onContextSw()

Definition at line 28 of file macros.h.

◆ WIN32_GUI

#define WIN32_GUI

Macro that should be defined (typically on the compiler's command line) in the Win32-GUI applications that use the Win32-QV port.

Definition at line 33 of file macros.h.