1 #ifndef SRC_NODE_VERSION_H_
2 #define SRC_NODE_VERSION_H_
4 #define NODE_MAJOR_VERSION 2
5 #define NODE_MINOR_VERSION 0
6 #define NODE_PATCH_VERSION 0
8 #define NODE_VERSION_IS_RELEASE 0
10 #ifndef NODE_STRINGIFY
11 #define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n)
12 #define NODE_STRINGIFY_HELPER(n) #n
15 #if NODE_VERSION_IS_RELEASE
19 # define NODE_VERSION_STRING NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \
20 NODE_STRINGIFY(NODE_MINOR_VERSION) "." \
21 NODE_STRINGIFY(NODE_PATCH_VERSION) \
25 # define NODE_TAG "-pre"
27 # define NODE_VERSION_STRING NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \
28 NODE_STRINGIFY(NODE_MINOR_VERSION) "." \
29 NODE_STRINGIFY(NODE_PATCH_VERSION) \
33 #define NODE_VERSION "v" NODE_VERSION_STRING
36 #define NODE_VERSION_AT_LEAST(major, minor, patch) \
37 (( (major) < NODE_MAJOR_VERSION) \
38 || ((major) == NODE_MAJOR_VERSION && (minor) < NODE_MINOR_VERSION) \
39 || ((major) == NODE_MAJOR_VERSION && \
40 (minor) == NODE_MINOR_VERSION && (patch) <= NODE_PATCH_VERSION))
43 * When this version number is changed, node.js will refuse
44 * to load older modules. This should be done whenever
45 * an API is broken in the C++ side, including in v8 or
48 #define NODE_MODULE_VERSION 44 /* io.js v2.0.0 */
50 #endif /* SRC_NODE_VERSION_H_ */