Ruby  3.4.0dev (2024-12-06 revision 892c46283a5ea4179500d951c9d4866c0051f27b)
noexcept.h
Go to the documentation of this file.
1 #ifndef RBIMPL_ATTR_NOEXCEPT_H /*-*-C++-*-vi:se ft=cpp:*/
2 #define RBIMPL_ATTR_NOEXCEPT_H
66 
68 #if ! defined(__cplusplus)
69 # /* Doesn't make sense. */
70 # define RBIMPL_ATTR_NOEXCEPT(_) /* void */
71 
72 #elif RBIMPL_HAS_FEATURE(cxx_noexcept)
73 # define RBIMPL_ATTR_NOEXCEPT(_) noexcept(noexcept(_))
74 
75 #elif defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__
76 # define RBIMPL_ATTR_NOEXCEPT(_) noexcept(noexcept(_))
77 
78 #elif defined(__INTEL_CXX11_MODE__)
79 # define RBIMPL_ATTR_NOEXCEPT(_) noexcept(noexcept(_))
80 
81 #elif RBIMPL_COMPILER_SINCE(MSVC, 19, 0, 0)
82 # define RBIMPL_ATTR_NOEXCEPT(_) noexcept(noexcept(_))
83 
84 #elif __cplusplus >= 201103L
85 # define RBIMPL_ATTR_NOEXCEPT(_) noexcept(noexcept(_))
86 
87 #else
88 # define RBIMPL_ATTR_NOEXCEPT(_) /* void */
89 #endif
90 
91 #endif /* RBIMPL_ATTR_NOEXCEPT_H */
Defines RBIMPL_COMPILER_SINCE.
Defines RBIMPL_HAS_FEATURE.