Skip to content

Commit e3e7446

Browse files
Add lifetimebound to attributes for general-purpose usage
Co-authored-by: practicalswift <[email protected]>
1 parent 1d58cc7 commit e3e7446

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/attributes.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,14 @@
1919
# endif
2020
#endif
2121

22+
#if defined(__clang__)
23+
# if __has_attribute(lifetimebound)
24+
# define LIFETIMEBOUND [[clang::lifetimebound]]
25+
# else
26+
# define LIFETIMEBOUND
27+
# endif
28+
#else
29+
# define LIFETIMEBOUND
30+
#endif
31+
2232
#endif // BITCOIN_ATTRIBUTES_H

0 commit comments

Comments
 (0)