Skip to content

Commit

Permalink
Merge bitcoin#19387: Add lifetimebound to attributes for general-purp…
Browse files Browse the repository at this point in the history
…ose usage

bitcoin@e3e7446
  • Loading branch information
kwvg committed Mar 23, 2021
1 parent be1929d commit 17f15e4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 17f15e4

Please sign in to comment.