Bitcoin Core
0.21.1
P2P Digital Currency
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
src
attributes.h
Go to the documentation of this file.
1
// Copyright (c) 2009-2010 Satoshi Nakamoto
2
// Copyright (c) 2009-2018 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(__has_cpp_attribute)
10
# if __has_cpp_attribute(nodiscard)
11
# define NODISCARD [[nodiscard]]
12
# endif
13
#endif
14
#ifndef NODISCARD
15
# if defined(_MSC_VER) && _MSC_VER >= 1700
16
# define NODISCARD _Check_return_
17
# else
18
# define NODISCARD __attribute__((warn_unused_result))
19
# endif
20
#endif
21
22
#endif // BITCOIN_ATTRIBUTES_H
Generated on Fri Apr 30 2021 15:02:46 for Bitcoin Core by
1.8.11