Ruby 4.1.0dev (2026-10-21 revision 536dc6f98b72e6999a84bb6373562c43cb1ddf8a)
lifetimebound.hpp
Go to the documentation of this file.
1
4#ifndef PRISM_COMPILER_LIFETIMEBOUND_HPP
5#define PRISM_COMPILER_LIFETIMEBOUND_HPP
6
13#if defined(__has_cpp_attribute)
14# if __has_cpp_attribute(clang::lifetimebound)
15# define PRISM_LIFETIMEBOUND [[clang::lifetimebound]]
16# elif __has_cpp_attribute(msvc::lifetimebound)
17# define PRISM_LIFETIMEBOUND [[msvc::lifetimebound]]
18# endif
19#endif
20
21#ifndef PRISM_LIFETIMEBOUND
22# define PRISM_LIFETIMEBOUND
23#endif
24
25#endif