Ruby 4.1.0dev (2026-11-12 revision e6e232d5facd495b6a7f143cf6e9c7960392ca25)
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