2014-10-31 18:17:05 +00:00
|
|
|
// Copyright (c) 2013 GitHub, Inc.
|
2014-04-25 09:49:37 +00:00
|
|
|
// Use of this source code is governed by the MIT license that can be
|
2013-08-08 09:22:35 +00:00
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2016-08-05 17:52:56 +00:00
|
|
|
#ifndef ATOM_COMMON_ATOM_VERSION_H_
|
|
|
|
#define ATOM_COMMON_ATOM_VERSION_H_
|
2013-08-08 09:22:35 +00:00
|
|
|
|
2016-05-09 10:17:58 +00:00
|
|
|
#define ATOM_MAJOR_VERSION 1
|
2017-08-31 18:10:33 +00:00
|
|
|
#define ATOM_MINOR_VERSION 8
|
2017-10-18 20:49:32 +00:00
|
|
|
#define ATOM_PATCH_VERSION 2
|
2017-11-13 17:26:52 +00:00
|
|
|
#define ATOM_PRE_RELEASE_VERSION -beta.2
|
2013-08-08 09:22:35 +00:00
|
|
|
|
2017-11-13 17:27:02 +00:00
|
|
|
#ifndef ATOM_PRE_RELEASE_VERSION
|
|
|
|
# define ATOM_PRE_RELEASE_VERSION ""
|
|
|
|
#endif
|
2017-11-13 17:26:52 +00:00
|
|
|
|
2013-08-08 09:22:35 +00:00
|
|
|
#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) "." \
|
|
|
|
ATOM_STRINGIFY(ATOM_MINOR_VERSION) "." \
|
|
|
|
ATOM_STRINGIFY(ATOM_PATCH_VERSION) \
|
2017-11-14 21:45:50 +00:00
|
|
|
ATOM_STRINGIFY(ATOM_PRE_RELEASE_VERSION)
|
2013-08-08 09:22:35 +00:00
|
|
|
|
|
|
|
#define ATOM_VERSION "v" ATOM_VERSION_STRING
|
|
|
|
|
|
|
|
|
|
|
|
#define ATOM_VERSION_AT_LEAST(major, minor, patch) \
|
|
|
|
(( (major) < ATOM_MAJOR_VERSION) \
|
|
|
|
|| ((major) == ATOM_MAJOR_VERSION && (minor) < ATOM_MINOR_VERSION) \
|
2016-08-05 17:52:56 +00:00
|
|
|
|| ((major) == ATOM_MAJOR_VERSION && (minor) == ATOM_MINOR_VERSION \
|
|
|
|
&& (patch) <= ATOM_PATCH_VERSION))
|
2013-08-08 09:22:35 +00:00
|
|
|
|
2016-08-05 17:52:56 +00:00
|
|
|
#endif // ATOM_COMMON_ATOM_VERSION_H_
|