49 #define QP_API_VERSION 0
54#if (QP_API_VERSION < 750)
56#define QM_SM_STATE_DECL(subm_, state_) error "submachines no longer supported"
57#define qm_super_sub(sm_state_) error "submachines no longer supported"
58#define qm_tran_ep(tatbl_) error "submachines no longer supported"
59#define qm_tran_xp(xp_, tatbl_) error "submachines no longer supported"
60#define qm_sm_exit(sm_state_) error "submachines no longer supported"
72#define Q_onAssert(module_, id_) Q_onError(module_, id_)
82 #define Q_ALLEGE_ID(id_, expr_) (static_cast<void>(expr_))
88 #define Q_ALLEGE_ID(id_, expr_) (static_cast<void>(expr_))
96 #define Q_ALLEGE_ID(id_, expr_) if (!(expr_)) { \
99 Q_onError(&Q_this_module_[0], (id_)); \
111#define Q_ALLEGE(expr_) Q_ALLEGE_ID(__LINE__, (expr_))
118#define Q_ASSERT_COMPILE(expr_) Q_ASSERT_STATIC(expr_)
121#define QF_NO_MARGIN QP::QF::NO_MARGIN
124#if (QP_API_VERSION < 691)
127#define QS_FILTER_ON(rec_) QS_GLB_FILTER((rec_))
130#define QS_FILTER_OFF(rec_) QS_GLB_FILTER(-(rec_))
133#define QS_FILTER_SM_OBJ(obj_) (static_cast<void>(0))
136#define QS_FILTER_AO_OBJ(obj_) (static_cast<void>(0))
139#define QS_FILTER_MP_OBJ(obj_) (static_cast<void>(0))
142#define QS_FILTER_EQ_OBJ(obj_) (static_cast<void>(0))
145#define QS_FILTER_TE_OBJ(obj_) (static_cast<void>(0))
150#define QS_FILTER_AP_OBJ(obj_) \
151 (QP::QS::filt_.loc_AP = (obj_))
154#define QS_BEGIN(rec_, obj_) \
155 if (QS_GLB_FILTER_(rec_) && \
156 ((QP::QS::filt_.loc[QP::QS::AP_OBJ] == nullptr) \
157 || (QP::QS::filt_.loc_AP == (obj_)))) \
161 QP::QS::beginRec_(static_cast<std::uint_fast8_t>(rec_)); \
165#define QS_U32_HEX(width_, data_) \
166 (QP::QS::u32_fmt_(static_cast<std::uint8_t>( \
167 (static_cast<std::uint8_t>((width_) << 4)) | QS_HEX_FMT), (data_)))
171#define QS_FILTER_AP_OBJ(obj_) (static_cast<void>(0))
172#define QS_BEGIN(rec_, obj_) if (false) {
173#define QS_U32_HEX(width_, data_) (Q_UNUSED_PAR(0))
178#if (QP_API_VERSION < 680)
184#define Q_TRAN(target_) (me->tran(Q_STATE_CAST(target_)))
190#define Q_TRAN_HIST(hist_) (me->tran_hist((hist_)))
196#define Q_SUPER(state_) (me->super(Q_STATE_CAST(state_)))
202#define QM_ENTRY(state_) (me->qm_entry((state_)))
208#define QM_EXIT(state_) (me->qm_exit((state_)))
214#define QM_TRAN(tatbl_) (me->qm_tran((tatbl_)))
220#define QM_TRAN_INIT(tatbl_) (me->qm_tran_init((tatbl_)))
226#define QM_TRAN_HIST(history_, tatbl_) \
227 (me->qm_tran_hist((history_), (tatbl_)))
QS/C++ port to a 32-bit CPU, generic C++ compiler.
QP Functional Safety (FuSa) Subsystem.