QP/C++  7.0.1
Real-Time Embedded Framework
qf_qmact.cpp File Reference

QMActive::QMActive() and virtual functions. More...

#include "qf_port.hpp"
#include "qassert.h"

Go to the source code of this file.


namespace  QP
 namespace associated with the QP/C++ framework


#define QF_QMACTIVE_TO_QMSM_CAST_(qact_)    reinterpret_cast<QMsm *>((qact_))
 Internal macro to cast a QP::QMActive pointer qact_ to QP::QMsm*. More...
#define QF_QMACTIVE_TO_QMSM_CONST_CAST_(qact_)    reinterpret_cast<QMsm const *>((qact_))
 Internal macro to cast a QP::QMActive pointer qact_ to QP::QMsm const *. More...

Detailed Description

Last updated on: 2022-04-30
Last updated for: Version 7.0.0, 2022-04-30

Definition in file qf_qmact.cpp.

Macro Definition Documentation


#define QF_QMACTIVE_TO_QMSM_CAST_ (   qact_)     reinterpret_cast<QMsm *>((qact_))
Casting pointer to pointer pointer violates the MISRA-C++ 2008 Rule 5-2-7, cast from pointer to pointer. Additionally this cast violates the MISRA- C++ 2008 Rule 5-2-8 Unusual pointer cast (incompatible indirect types). Encapsulating these violations in a macro allows to selectively suppress this specific deviation.

Definition at line 42 of file qf_qmact.cpp.


#define QF_QMACTIVE_TO_QMSM_CONST_CAST_ (   qact_)     reinterpret_cast<QMsm const *>((qact_))

Definition at line 46 of file qf_qmact.cpp.