Add lifetimebound to attributes for general-purpose usage

Co-authored-by: practicalswift <practicalswift@users.noreply.github.com>
This commit is contained in:
Cory Fields 2020-07-08 12:52:14 -04:00
parent 1d58cc7cb0
commit e3e7446305

View file

@ -19,4 +19,14 @@
# endif # endif
#endif #endif
#if defined(__clang__)
# if __has_attribute(lifetimebound)
# define LIFETIMEBOUND [[clang::lifetimebound]]
# else
# define LIFETIMEBOUND
# endif
#else
# define LIFETIMEBOUND
#endif
#endif // BITCOIN_ATTRIBUTES_H #endif // BITCOIN_ATTRIBUTES_H