Dash Core  0.12.2.1
P2P Digital Currency
clientversion.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2015 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/dash-config.h"
10 #else
11 
16 #define CLIENT_VERSION_MAJOR 0
18 #define CLIENT_VERSION_MINOR 12
19 #define CLIENT_VERSION_REVISION 2
20 #define CLIENT_VERSION_BUILD 1
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) " The Bitcoin Core Developers, 2014-" STRINGIZE(COPYRIGHT_YEAR) " The Dash Core Developers"
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 extern const std::string CLIENT_DATE;
63 
64 
65 std::string FormatFullVersion();
66 std::string FormatSubVersion(const std::string& name, int nClientVersion, const std::vector<std::string>& comments);
67 
68 #endif // WINDRES_PREPROC
69 
70 #endif // BITCOIN_CLIENTVERSION_H
std::string FormatSubVersion(const std::string &name, int nClientVersion, const std::vector< std::string > &comments)
#define CLIENT_VERSION_MAJOR
These need to be macros, as clientversion.cpp&#39;s and dash*-res.rc&#39;s voodoo requires it...
Definition: clientversion.h:17
#define CLIENT_VERSION_MINOR
Definition: clientversion.h:18
const char * name
Definition: rest.cpp:37
std::string FormatFullVersion()
const std::string CLIENT_NAME
#define CLIENT_VERSION_BUILD
Definition: clientversion.h:20
const std::string CLIENT_DATE
static const int CLIENT_VERSION
Definition: clientversion.h:54
const std::string CLIENT_BUILD
#define CLIENT_VERSION_REVISION
Definition: clientversion.h:19