mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-25 08:22:57 +02:00
Add lifetimebound to attributes for general-purpose usage
Co-authored-by: practicalswift <practicalswift@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user