-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4ccf43
commit 228a669
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// | ||
// FILENAME: version-info.h | Plasmacoin Cryptocurrency | ||
// DESCRIPTION: A central place to store version information | ||
// CREATED: 2021-08-02 @ 8:22 PM | ||
// COPYRIGHT: Copyright (c) 2021 by Ryan Smith <[email protected]> | ||
// | ||
|
||
#ifndef SOFTWARE_INFO_HPP | ||
#define SOFTWARE_INFO_HPP | ||
|
||
// | ||
// Alllow stringifying integers | ||
// | ||
|
||
#define STRINGIFY(arg) #arg | ||
#define TO_STRING(arg) STRINGIFY(arg) | ||
|
||
// Punctuation/delimiters | ||
#define POINT "." | ||
#define DASH "-" | ||
|
||
#define PLASMACOIN_VERSION_MINOR 1 | ||
#define PLASMACOIN_VERSION_MAJOR 0 | ||
#define PLASMACOIN_VERSION_PATCH 0 | ||
|
||
// | ||
// Set these macros to 1 (true) if the release is a pre-release version. | ||
// | ||
// Only one should be set at a time. In the event that multiple are set, | ||
// the first set macro is used. | ||
// | ||
// If none of the following macros are set, a stable (production) release | ||
// is assumed. | ||
// | ||
|
||
#define ALPHA 0 | ||
#define BETA 1 | ||
#define RC 0 | ||
|
||
// Determine the pre-release type | ||
#if ALPHA | ||
#define PRE_RELEASE_TYPE "alpha" | ||
#elif BETA | ||
#define PRE_RELEASE_TYPE "beta" | ||
#elif RC | ||
#define PRE_RELEASE_TYPE "rc" | ||
#endif | ||
|
||
#define PRE_RELEASE_VERSION 1 | ||
#define BUILD_METADATA 20220802 | ||
#define RELEASE_DATE_TIME __DATE__ __TIME__ | ||
#define INITIAL_RELEASE_YEAR 2022 | ||
|
||
// | ||
// Version macros | ||
// | ||
|
||
#define PLASMACOIN_VERSION TO_STRING(PLASMACOIN_VERSION_MAJOR) POINT TO_STRING(PLASMACOIN_VERSION_MINOR) POINT TO_STRING(PLASMACOIN_VERSION_PATCH) | ||
#define VERSION_METADATA PRE_RELEASE_TYPE TO_STRING(PRE_RELEASE_VERSION) DASH TO_STRING(BUILD_METADATA) | ||
#define PLASMACOIN_FULL_VERSION PLASMACOIN_VERSION DASH VERSION_METADATA | ||
|
||
#endif // SOFTWARE_INFO_HPP |