QP/C++  8.0.2
Real-Time Embedded Framework
Loading...
Searching...
No Matches
qpcpp.hpp File Reference

QP/C++ interface including the backwards-compatibility layer. More...

#include "qp_port.hpp"
#include "qsafe.h"
#include "qs_port.hpp"

Go to the source code of this file.

Macros

#define QP_API_VERSION   0
 
#define QM_SM_STATE_DECL(subm_, state_)
 
#define qm_super_sub(sm_state_)
 
#define qm_tran_ep(tatbl_)
 
#define qm_tran_xp(xp_, tatbl_)
 
#define qm_sm_exit(sm_state_)
 
#define Q_onAssert(module_, id_)
 
#define Q_ALLEGE_ID(id_, expr_)
 
#define Q_ALLEGE(expr_)
 
#define Q_ASSERT_COMPILE(expr_)
 

Typedefs

using char_t = char
 

Detailed Description

QP/C++ interface including the backwards-compatibility layer.

Definition in file qpcpp.hpp.

Macro Definition Documentation

◆ QP_API_VERSION

#define QP_API_VERSION   0

Definition at line 44 of file qpcpp.hpp.

◆ QM_SM_STATE_DECL

#define QM_SM_STATE_DECL ( subm_,
state_ )
Value:
error "submachines no longer supported"

Definition at line 51 of file qpcpp.hpp.

◆ qm_super_sub

#define qm_super_sub ( sm_state_)
Value:
error "submachines no longer supported"

Definition at line 52 of file qpcpp.hpp.

◆ qm_tran_ep

#define qm_tran_ep ( tatbl_)
Value:
error "submachines no longer supported"

Definition at line 53 of file qpcpp.hpp.

◆ qm_tran_xp

#define qm_tran_xp ( xp_,
tatbl_ )
Value:
error "submachines no longer supported"

Definition at line 54 of file qpcpp.hpp.

◆ qm_sm_exit

#define qm_sm_exit ( sm_state_)
Value:
error "submachines no longer supported"

Definition at line 55 of file qpcpp.hpp.

◆ Q_onAssert

#define Q_onAssert ( module_,
id_ )
Value:
Q_onError(module_, id_)
Q_NORETURN Q_onError(char const *const module, int_t const id)
Deprecated
assertion failure handler Use Q_onError() instead.

Definition at line 67 of file qpcpp.hpp.

◆ Q_ALLEGE_ID

#define Q_ALLEGE_ID ( id_,
expr_ )
Value:
if (!(expr_)) { \
QF_CRIT_STAT \
QF_CRIT_ENTRY(); \
Q_onError(&Q_this_module_[0], (id_)); \
QF_CRIT_EXIT(); \
} else ((void)0)
Deprecated
#Q_NASSERT preprocessor switch to disable QP assertions
Deprecated
general purpose assertion with user-specified ID number that always evaluates the expr_ expression.
Note
The use of this macro is no longer recommended.

Definition at line 91 of file qpcpp.hpp.

◆ Q_ALLEGE

#define Q_ALLEGE ( expr_)
Value:
Q_ALLEGE_ID(__LINE__, (expr_))
#define Q_ALLEGE_ID(id_, expr_)
Definition qpcpp.hpp:91
Deprecated
general purpose assertion without ID number that always evaluates the expr_ expression. Instead of ID number, this macro is based on the standard __LINE__ macro.
Note
The use of this macro is no longer recommended.

Definition at line 106 of file qpcpp.hpp.

◆ Q_ASSERT_COMPILE

#define Q_ASSERT_COMPILE ( expr_)
Value:
#define Q_ASSERT_STATIC(expr_)
Definition qsafe.h:96

Static (compile-time) assertion.

Deprecated
Use Q_ASSERT_STATIC() or better yet static_assert() instead.

Definition at line 111 of file qpcpp.hpp.

Typedef Documentation

◆ char_t

using char_t = char
Deprecated
plain 'char' is no longer forbidden in MISRA-C++:2023

Definition at line 63 of file qpcpp.hpp.