mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
Add lifetimebound to attributes for general-purpose usage
Co-authored-by: practicalswift <practicalswift@users.noreply.github.com>
This commit is contained in:
parent
1d58cc7cb0
commit
e3e7446305
1 changed files with 10 additions and 0 deletions
|
@ -19,4 +19,14 @@
|
|||
# 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
|
||||
|
|
Loading…
Reference in a new issue