2014-10-31 21:17:05 +03:00
|
|
|
// Copyright (c) 2013 GitHub, Inc.
|
2014-04-25 13:49:37 +04:00
|
|
|
// Use of this source code is governed by the MIT license that can be
|
2013-08-08 13:22:35 +04:00
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef ATOM_VERSION_H
|
|
|
|
#define ATOM_VERSION_H
|
|
|
|
|
|
|
|
#define ATOM_MAJOR_VERSION 0
|
2015-12-11 06:49:01 +03:00
|
|
|
#define ATOM_MINOR_VERSION 36
|
2016-03-05 06:00:06 +03:00
|
|
|
#define ATOM_PATCH_VERSION 10
|
2013-08-08 13:22:35 +04:00
|
|
|
|
2013-12-27 12:21:31 +04:00
|
|
|
#define ATOM_VERSION_IS_RELEASE 1
|
2013-08-08 13:22:35 +04:00
|
|
|
|
|
|
|
#ifndef ATOM_TAG
|
|
|
|
# define ATOM_TAG ""
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef ATOM_STRINGIFY
|
|
|
|
#define ATOM_STRINGIFY(n) ATOM_STRINGIFY_HELPER(n)
|
|
|
|
#define ATOM_STRINGIFY_HELPER(n) #n
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ATOM_VERSION_IS_RELEASE
|
|
|
|
# define ATOM_VERSION_STRING ATOM_STRINGIFY(ATOM_MAJOR_VERSION) "." \
|
|
|
|
ATOM_STRINGIFY(ATOM_MINOR_VERSION) "." \
|
|
|
|
ATOM_STRINGIFY(ATOM_PATCH_VERSION) \
|
|
|
|
ATOM_TAG
|
|
|
|
#else
|
|
|
|
# define ATOM_VERSION_STRING ATOM_STRINGIFY(ATOM_MAJOR_VERSION) "." \
|
|
|
|
ATOM_STRINGIFY(ATOM_MINOR_VERSION) "." \
|
|
|
|
ATOM_STRINGIFY(ATOM_PATCH_VERSION) \
|
|
|
|
ATOM_TAG "-pre"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#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) \
|
|
|
|
|| ((major) == ATOM_MAJOR_VERSION && (minor) == ATOM_MINOR_VERSION && (patch) <= ATOM_PATCH_VERSION))
|
|
|
|
|
|
|
|
#endif /* ATOM_VERSION_H */
|