1 #ifndef RBIMPL_ATTR_DIAGNOSE_IF_H
2 #define RBIMPL_ATTR_DIAGNOSE_IF_H
27 #if RBIMPL_COMPILER_BEFORE(Clang, 5, 0, 0)
29 # define RBIMPL_ATTR_DIAGNOSE_IF(_, __, ___)
31 #elif RBIMPL_HAS_ATTRIBUTE(diagnose_if)
32 # define RBIMPL_ATTR_DIAGNOSE_IF(_, __, ___) \
33 RBIMPL_WARNING_PUSH() \
34 RBIMPL_WARNING_IGNORED(-Wgcc-compat) \
35 __attribute__((__diagnose_if__(_, __, ___))) \
39 # define RBIMPL_ATTR_DIAGNOSE_IF(_, __, ___)
Defines RBIMPL_HAS_ATTRIBUTE.
Defines RBIMPL_WARNING_PUSH.