2018-09-25 02:00:36 -03:00
|
|
|
// Copyright (c) 2009-2010 Satoshi Nakamoto
|
2020-12-31 05:48:25 -03:00
|
|
|
// Copyright (c) 2009-2020 The Bitcoin Core developers
|
2018-09-25 02:00:36 -03:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
#ifndef BITCOIN_ATTRIBUTES_H
|
|
|
|
#define BITCOIN_ATTRIBUTES_H
|
|
|
|
|
2020-07-08 12:52:14 -04:00
|
|
|
#if defined(__clang__)
|
|
|
|
# if __has_attribute(lifetimebound)
|
|
|
|
# define LIFETIMEBOUND [[clang::lifetimebound]]
|
|
|
|
# else
|
|
|
|
# define LIFETIMEBOUND
|
|
|
|
# endif
|
|
|
|
#else
|
|
|
|
# define LIFETIMEBOUND
|
|
|
|
#endif
|
|
|
|
|
2023-05-04 15:57:51 -04:00
|
|
|
#if defined(__GNUC__)
|
|
|
|
# define ALWAYS_INLINE inline __attribute__((always_inline))
|
|
|
|
#elif defined(_MSC_VER)
|
|
|
|
# define ALWAYS_INLINE __forceinline
|
|
|
|
#else
|
|
|
|
# error No known always_inline attribute for this platform.
|
|
|
|
#endif
|
|
|
|
|
2018-09-25 02:00:36 -03:00
|
|
|
#endif // BITCOIN_ATTRIBUTES_H
|