Skip to content

Commit

Permalink
Add lifetimebound to attributes for general-purpose usage
Browse files Browse the repository at this point in the history
Co-authored-by: practicalswift <practicalswift@users.noreply.github.com>
  • Loading branch information
theuni and practicalswift committed Jul 8, 2020
1 parent 1d58cc7 commit e3e7446
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 e3e7446

Please sign in to comment.