lib: put __BT_UPCAST() and __BT_UPCAST_CONST() in `babeltrace.h`
[babeltrace.git] / include / babeltrace2 / types.h
index 9808ec1d00db21439f7b2d159442f4def5acbc92..99d9f1bfbf804f94693c563baf95afc14f3cfcf7 100644 (file)
 
 #include <stdint.h>
 
-/* Internal use */
-#ifdef __cplusplus
-# define __BT_UPCAST(_type, _p)                static_cast<_type *>(static_cast<void *>(_p))
-# define __BT_UPCAST_CONST(_type, _p)  static_cast<const _type *>(static_cast<const void *>(_p))
-#else
-# define __BT_UPCAST(_type, _p)                ((_type *) (_p))
-# define __BT_UPCAST_CONST(_type, _p)  ((const _type *) (_p))
-#endif
-
 #ifdef __cplusplus
 extern "C" {
 #endif
This page took 0.040457 seconds and 4 git commands to generate.