QP/C public interface including backwards-compatibility layer. More...
Go to the source code of this file.
Macros | |
#define | QP_API_VERSION 0 |
#define | Q_ASSERT_COMPILE(expr_) Q_ASSERT_STATIC(expr_) |
#define | QS_FILTER_ON(rec_) QS_GLB_FILTER((rec_)) |
#define | QS_FILTER_OFF(rec_) QS_GLB_FILTER(-(rec_)) |
#define | QS_FILTER_SM_OBJ(obj_) ((void)0) |
#define | QS_FILTER_AO_OBJ(obj_) ((void)0) |
#define | QS_FILTER_MP_OBJ(obj_) ((void)0) |
#define | QS_FILTER_EQ_OBJ(obj_) ((void)0) |
#define | QS_FILTER_TE_OBJ(obj_) ((void)0) |
#define | QS_FILTER_AP_OBJ(obj_) (QS_priv_.locFilter_AP = (obj_)) |
#define | QS_BEGIN(rec_, obj_) |
#define | QS_U32_HEX(width_, data_) (QS_u32_fmt_((uint8_t)(((width_) << 4)) | QS_HEX_FMT, (data_))) |
#define | Q_XTHREAD_CAST(handler_) ((QXThreadHandler)(handler_)) |
#define | QMSM_INIT(me_, e_) QHSM_INIT((me_), (e_)) |
#define | QMSM_DISPATCH(me_, e_) QHSM_DISPATCH((me_), (e_), 0U) |
Typedefs | |
typedef char | char_t |
This header file must be included directly or indirectly in all application modules (*.c files) that use QP/C.
Definition in file qpc.h.
#define QP_API_VERSION 0 |
Specifies the backwards compatibility with the QP/C API version.
For example, QP_API_VERSION==691 will cause generating the compatibility layer with QP/C version 6.9.1 and newer, but not older than 6.9.1. QP_API_VERSION==0 causes generation of the maximum currently supported backwards compatibility. This is the default.
Conversely, QP_API_VERSION==9999 means that no compatibility layer should be generated. This setting is useful for checking if an application complies with the latest QP/C API.
#define Q_ASSERT_COMPILE | ( | expr_ | ) | Q_ASSERT_STATIC(expr_) |
Static (compile-time) assertion.
_Static_assert()
instead. #define QS_FILTER_ON | ( | rec_ | ) | QS_GLB_FILTER((rec_)) |
#define QS_FILTER_OFF | ( | rec_ | ) | QS_GLB_FILTER(-(rec_)) |
#define QS_FILTER_SM_OBJ | ( | obj_ | ) | ((void)0) |
#define QS_FILTER_AO_OBJ | ( | obj_ | ) | ((void)0) |
#define QS_FILTER_MP_OBJ | ( | obj_ | ) | ((void)0) |
#define QS_FILTER_EQ_OBJ | ( | obj_ | ) | ((void)0) |
#define QS_FILTER_TE_OBJ | ( | obj_ | ) | ((void)0) |
#define QS_FILTER_AP_OBJ | ( | obj_ | ) | (QS_priv_.locFilter_AP = (obj_)) |
obj_
. #define QS_BEGIN | ( | rec_, | |
obj_ | |||
) |
#define QS_U32_HEX | ( | width_, | |
data_ | |||
) | (QS_u32_fmt_((uint8_t)(((width_) << 4)) | QS_HEX_FMT, (data_))) |
#define Q_XTHREAD_CAST | ( | handler_ | ) | ((QXThreadHandler)(handler_)) |
#define QMSM_INIT | ( | me_, | |
e_ | |||
) | QHSM_INIT((me_), (e_)) |
#define QMSM_DISPATCH | ( | me_, | |
e_ | |||
) | QHSM_DISPATCH((me_), (e_), 0U) |
typedef char char_t |