30 #if ! defined(__cplusplus)
31 # define RBIMPL_CAST(expr) (expr)
33 #elif RBIMPL_COMPILER_SINCE(GCC, 4, 6, 0)
36 # define RBIMPL_CAST(expr) (expr)
37 # pragma GCC diagnostic ignored "-Wold-style-cast"
39 #elif RBIMPL_HAS_WARNING("-Wold-style-cast")
40 # define RBIMPL_CAST(expr) \
41 RBIMPL_WARNING_PUSH() \
42 RBIMPL_WARNING_IGNORED(-Wold-style-cast) \
47 # define RBIMPL_CAST(expr) (expr)
Defines RBIMPL_COMPILER_SINCE.
Defines RBIMPL_HAS_WARNING.
Defines RBIMPL_WARNING_PUSH.