Bitcoin Core 32.99.0
P2P Digital Currency
attributes.h
Go to the documentation of this file.
1// Copyright (c) 2009-2010 Satoshi Nakamoto
2// Copyright (c) 2009-present The Bitcoin Core developers
3// Distributed under the MIT software license, see the accompanying
4// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6#ifndef BITCOIN_ATTRIBUTES_H
7#define BITCOIN_ATTRIBUTES_H
8
9#if defined(__clang__)
10# define LIFETIMEBOUND [[clang::lifetimebound]]
11#else
12# define LIFETIMEBOUND
13#endif
14
15#if defined(__GNUC__)
16# define ALWAYS_INLINE inline __attribute__((always_inline))
17#elif defined(_MSC_VER)
18# define ALWAYS_INLINE __forceinline
19#else
20# error No known always_inline attribute for this platform.
21#endif
22
23#endif // BITCOIN_ATTRIBUTES_H