forked from apiaryio/drafter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVersion.h
38 lines (31 loc) · 1.09 KB
/
Version.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// version.h
// drafter
//
// Created by Jiri Kratochvil on 2015-02-13
// Attribution Notice:
// This work might use parts of Node.js `node_version.h`
// https://github.com/joyent/node
//
// Copyright (c) 2015 Apiary Inc. All rights reserved.
//
#ifndef DRAFTER_VERSION_H
#define DRAFTER_VERSION_H
#define DRAFTER_MAJOR_VERSION 4
#define DRAFTER_MINOR_VERSION 0
#define DRAFTER_PATCH_VERSION 0
#define DRAFTER_VERSION_IS_RELEASE 0
#define DRAFTER_PRE_RELEASE_VERSION 0
#ifndef DRAFTER_STRINGIFY
#define DRAFTER_STRINGIFY(n) DRAFTER_STRINGIFY_HELPER(n)
#define DRAFTER_STRINGIFY_HELPER(n) #n
#endif
#define DRAFTER_VERSION_STRING_HELPER \
"v" DRAFTER_STRINGIFY(DRAFTER_MAJOR_VERSION) "." DRAFTER_STRINGIFY(DRAFTER_MINOR_VERSION) "." DRAFTER_STRINGIFY( \
DRAFTER_PATCH_VERSION)
#if DRAFTER_VERSION_IS_RELEASE
#define DRAFTER_VERSION_STRING DRAFTER_VERSION_STRING_HELPER
#else
#define DRAFTER_VERSION_STRING DRAFTER_VERSION_STRING_HELPER "-pre." DRAFTER_STRINGIFY(DRAFTER_PRE_RELEASE_VERSION)
#endif
#endif