Bitcoin ABC
0.22.12
P2P Digital Currency
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 Tue Jan 19 2021 21:20:16 for Bitcoin ABC by
1.8.13