Fix PRE_RELEASE_VERSION (on master) (#11844)
* 🔧 Fix PRE_RELEASE_VERSION * 🔧 Fix spacing * 🔧 Fix this, but harder
This commit is contained in:
parent
64f509ea7a
commit
6c6fa3190f
1 changed files with 8 additions and 5 deletions
|
@ -10,19 +10,22 @@
|
||||||
#define ATOM_PATCH_VERSION 2
|
#define ATOM_PATCH_VERSION 2
|
||||||
#define ATOM_PRE_RELEASE_VERSION -beta.2
|
#define ATOM_PRE_RELEASE_VERSION -beta.2
|
||||||
|
|
||||||
#ifndef ATOM_PRE_RELEASE_VERSION
|
|
||||||
# define ATOM_PRE_RELEASE_VERSION ""
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef ATOM_STRINGIFY
|
#ifndef ATOM_STRINGIFY
|
||||||
#define ATOM_STRINGIFY(n) ATOM_STRINGIFY_HELPER(n)
|
#define ATOM_STRINGIFY(n) ATOM_STRINGIFY_HELPER(n)
|
||||||
#define ATOM_STRINGIFY_HELPER(n) #n
|
#define ATOM_STRINGIFY_HELPER(n) #n
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
# define ATOM_VERSION_STRING ATOM_STRINGIFY(ATOM_MAJOR_VERSION) "." \
|
#ifndef ATOM_PRE_RELEASE_VERSION
|
||||||
|
#define ATOM_VERSION_STRING ATOM_STRINGIFY(ATOM_MAJOR_VERSION) "." \
|
||||||
|
ATOM_STRINGIFY(ATOM_MINOR_VERSION) "." \
|
||||||
|
ATOM_STRINGIFY(ATOM_PATCH_VERSION)
|
||||||
|
#else
|
||||||
|
#define ATOM_VERSION_STRING ATOM_STRINGIFY(ATOM_MAJOR_VERSION) "." \
|
||||||
ATOM_STRINGIFY(ATOM_MINOR_VERSION) "." \
|
ATOM_STRINGIFY(ATOM_MINOR_VERSION) "." \
|
||||||
ATOM_STRINGIFY(ATOM_PATCH_VERSION) \
|
ATOM_STRINGIFY(ATOM_PATCH_VERSION) \
|
||||||
ATOM_STRINGIFY(ATOM_PRE_RELEASE_VERSION)
|
ATOM_STRINGIFY(ATOM_PRE_RELEASE_VERSION)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define ATOM_VERSION "v" ATOM_VERSION_STRING
|
#define ATOM_VERSION "v" ATOM_VERSION_STRING
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue