PIVX Core
5.6.99
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 PIVX_ATTRIBUTES_H
7
#define PIVX_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
#if defined(__clang__)
23
# if __has_attribute(lifetimebound)
24
# define LIFETIMEBOUND [[clang::lifetimebound]]
25
# else
26
# define LIFETIMEBOUND
27
# endif
28
#else
29
# define LIFETIMEBOUND
30
#endif
31
32
#endif
// PIVX_ATTRIBUTES_H
Generated on Wed Apr 2 2025 00:40:26 for PIVX Core by
1.9.1