diff --git a/include/ck_cc.h b/include/ck_cc.h index 30ec383..b588616 100644 --- a/include/ck_cc.h +++ b/include/ck_cc.h @@ -162,4 +162,11 @@ ck_cc_popcount(unsigned int x) } #endif + +#ifdef __cplusplus +#define CK_CPP_CAST(type, arg) static_cast(arg) +#else +#define CK_CPP_CAST(type, arg) arg +#endif + #endif /* CK_CC_H */