diff --git a/atom/common/atom_version.h b/atom/common/atom_version.h index a279283cf09d..5fa39680ca81 100644 --- a/atom/common/atom_version.h +++ b/atom/common/atom_version.h @@ -10,19 +10,22 @@ #define ATOM_PATCH_VERSION 2 #define ATOM_PRE_RELEASE_VERSION -beta.2 -#ifndef ATOM_PRE_RELEASE_VERSION -# define ATOM_PRE_RELEASE_VERSION "" -#endif - #ifndef ATOM_STRINGIFY #define ATOM_STRINGIFY(n) ATOM_STRINGIFY_HELPER(n) #define ATOM_STRINGIFY_HELPER(n) #n #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_PATCH_VERSION) \ ATOM_STRINGIFY(ATOM_PRE_RELEASE_VERSION) +#endif + #define ATOM_VERSION "v" ATOM_VERSION_STRING