c++: introduce CK_CPP_CAST to static_cast arguments

ck_pring
Michael Haberler 9 years ago
parent d2ee99b7f4
commit a9005e55f1

@ -162,4 +162,11 @@ ck_cc_popcount(unsigned int x)
} }
#endif #endif
#ifdef __cplusplus
#define CK_CPP_CAST(type, arg) static_cast<type>(arg)
#else
#define CK_CPP_CAST(type, arg) arg
#endif
#endif /* CK_CC_H */ #endif /* CK_CC_H */

Loading…
Cancel
Save