Dogecoin Core  1.14.2
P2P Digital Currency
clientversion.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2016 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_CLIENTVERSION_H
6 #define BITCOIN_CLIENTVERSION_H
7 
8 #if defined(HAVE_CONFIG_H)
9 #include "config/bitcoin-config.h"
10 #else
11 
17 #define CLIENT_VERSION_MAJOR 0
18 #define CLIENT_VERSION_MINOR 14
19 #define CLIENT_VERSION_REVISION 2
20 #define CLIENT_VERSION_BUILD 0
21 
23 #define CLIENT_VERSION_IS_RELEASE true
24 
29 #define COPYRIGHT_YEAR 2017
30 
31 #endif //HAVE_CONFIG_H
32 
37 #define STRINGIZE(X) DO_STRINGIZE(X)
38 #define DO_STRINGIZE(X) #X
39 
41 #define COPYRIGHT_STR "2009-" STRINGIZE(COPYRIGHT_YEAR) " " COPYRIGHT_HOLDERS_FINAL
42 
49 #if !defined(WINDRES_PREPROC)
50 
51 #include <string>
52 #include <vector>
53 
54 static const int CLIENT_VERSION =
55  1000000 * CLIENT_VERSION_MAJOR
56  + 10000 * CLIENT_VERSION_MINOR
59 
60 extern const std::string CLIENT_NAME;
61 extern const std::string CLIENT_BUILD;
62 
63 
64 std::string FormatFullVersion();
65 std::string FormatSubVersion(const std::string& name, int nClientVersion, const std::vector<std::string>& comments);
66 
67 #endif // WINDRES_PREPROC
68 
69 #endif // BITCOIN_CLIENTVERSION_H
#define CLIENT_VERSION_REVISION
Definition: clientversion.h:19
const std::string CLIENT_BUILD
std::string FormatSubVersion(const std::string &name, int nClientVersion, const std::vector< std::string > &comments)
Format the subversion field according to BIP 14 spec (https://github.com/bitcoin/bips/blob/master/bip...
#define CLIENT_VERSION_BUILD
Definition: clientversion.h:20
#define CLIENT_VERSION_MAJOR
client versioning and copyright year
Definition: clientversion.h:17
#define CLIENT_VERSION_MINOR
Definition: clientversion.h:18
std::string FormatFullVersion()
const std::string CLIENT_NAME