Node.js  v8.x
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine
node_version.h
Go to the documentation of this file.
1 // Copyright Joyent, Inc. and other Node contributors.
2 //
3 // Permission is hereby granted, free of charge, to any person obtaining a
4 // copy of this software and associated documentation files (the
5 // "Software"), to deal in the Software without restriction, including
6 // without limitation the rights to use, copy, modify, merge, publish,
7 // distribute, sublicense, and/or sell copies of the Software, and to permit
8 // persons to whom the Software is furnished to do so, subject to the
9 // following conditions:
10 //
11 // The above copyright notice and this permission notice shall be included
12 // in all copies or substantial portions of the Software.
13 //
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
17 // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18 // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
19 // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20 // USE OR OTHER DEALINGS IN THE SOFTWARE.
21 
22 #ifndef SRC_NODE_VERSION_H_
23 #define SRC_NODE_VERSION_H_
24 
25 #define NODE_MAJOR_VERSION 8
26 #define NODE_MINOR_VERSION 5
27 #define NODE_PATCH_VERSION 1
28 
29 #define NODE_VERSION_IS_RELEASE 0
30 
31 #ifndef NODE_STRINGIFY
32 #define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n)
33 #define NODE_STRINGIFY_HELPER(n) #n
34 #endif
35 
36 #ifndef NODE_RELEASE
37 #define NODE_RELEASE "node"
38 #endif
39 
40 #ifndef NODE_TAG
41 # if NODE_VERSION_IS_RELEASE
42 # define NODE_TAG ""
43 # else
44 # define NODE_TAG "-pre"
45 # endif
46 #else
47 // NODE_TAG is passed without quotes when rc.exe is run from msbuild
48 # define NODE_EXE_VERSION NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \
49  NODE_STRINGIFY(NODE_MINOR_VERSION) "." \
50  NODE_STRINGIFY(NODE_PATCH_VERSION) \
51  NODE_STRINGIFY(NODE_TAG)
52 #endif
53 
54 # define NODE_VERSION_STRING NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \
55  NODE_STRINGIFY(NODE_MINOR_VERSION) "." \
56  NODE_STRINGIFY(NODE_PATCH_VERSION) \
57  NODE_TAG
58 #ifndef NODE_EXE_VERSION
59 # define NODE_EXE_VERSION NODE_VERSION_STRING
60 #endif
61 
62 #define NODE_VERSION "v" NODE_VERSION_STRING
63 
64 
65 #define NODE_VERSION_AT_LEAST(major, minor, patch) \
66  (( (major) < NODE_MAJOR_VERSION) \
67  || ((major) == NODE_MAJOR_VERSION && (minor) < NODE_MINOR_VERSION) \
68  || ((major) == NODE_MAJOR_VERSION && \
69  (minor) == NODE_MINOR_VERSION && (patch) <= NODE_PATCH_VERSION))
70 
80 #define NODE_MODULE_VERSION 57 /* Node.js v8.0.0 */
81 
82 #endif // SRC_NODE_VERSION_H_