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.

Namespaces

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

Macros

#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

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

Definition in file qf_qmact.cpp.

Macro Definition Documentation

◆ QF_QMACTIVE_TO_QMSM_CAST_

#define QF_QMACTIVE_TO_QMSM_CAST_ (   qact_)     reinterpret_cast<QMsm *>((qact_))
Note
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.

◆ QF_QMACTIVE_TO_QMSM_CONST_CAST_

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

Definition at line 46 of file qf_qmact.cpp.