2014-10-31 11:17:05 -07:00
|
|
|
// Copyright (c) 2013 GitHub, Inc.
|
2014-04-25 17:49:37 +08:00
|
|
|
// Use of this source code is governed by the MIT license that can be
|
2013-08-08 17:22:35 +08:00
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2016-08-05 10:52:56 -07:00
|
|
|
#ifndef ATOM_COMMON_ATOM_VERSION_H_
|
|
|
|
#define ATOM_COMMON_ATOM_VERSION_H_
|
2013-08-08 17:22:35 +08:00
|
|
|
|
2019-01-23 11:49:22 -08:00
|
|
|
#define ATOM_MAJOR_VERSION 6
|
2018-03-05 16:18:00 +01:00
|
|
|
#define ATOM_MINOR_VERSION 0
|
|
|
|
#define ATOM_PATCH_VERSION 0
|
2018-09-28 13:57:04 +10:00
|
|
|
// clang-format off
|
2019-04-04 11:42:14 -07:00
|
|
|
#define ATOM_PRE_RELEASE_VERSION -nightly.20190404
|
2018-09-19 23:55:07 -07:00
|
|
|
// clang-format on
|
2013-08-08 17:22:35 +08:00
|
|
|
|
|
|
|
#ifndef ATOM_STRINGIFY
|
|
|
|
#define ATOM_STRINGIFY(n) ATOM_STRINGIFY_HELPER(n)
|
|
|
|
#define ATOM_STRINGIFY_HELPER(n) #n
|
|
|
|
#endif
|
|
|
|
|
2018-02-06 14:33:51 -08:00
|
|
|
#ifndef ATOM_PRE_RELEASE_VERSION
|
2018-04-17 21:55:30 -04:00
|
|
|
#define ATOM_VERSION_STRING \
|
|
|
|
ATOM_STRINGIFY(ATOM_MAJOR_VERSION) \
|
|
|
|
"." ATOM_STRINGIFY(ATOM_MINOR_VERSION) "." ATOM_STRINGIFY(ATOM_PATCH_VERSION)
|
2018-02-06 14:33:51 -08:00
|
|
|
#else
|
2018-04-17 21:44:10 -04:00
|
|
|
#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)
|
2018-02-06 14:33:51 -08:00
|
|
|
#endif
|
|
|
|
|
2013-08-08 17:22:35 +08:00
|
|
|
#define ATOM_VERSION "v" ATOM_VERSION_STRING
|
|
|
|
|
2016-08-05 10:52:56 -07:00
|
|
|
#endif // ATOM_COMMON_ATOM_VERSION_H_
|