The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / src / node_version.h @ 57544ba1

History | View | Annotate | Download (1.09 KB)

1

    
2
#include "node_config.h"
3

    
4
#ifndef NODE_VERSION_H
5
#define NODE_VERSION_H
6

    
7
#define NODE_MAJOR_VERSION 0
8
#define NODE_MINOR_VERSION 3
9
#define NODE_PATCH_VERSION 3
10
#define NODE_VERSION_IS_RELEASE 1
11

    
12
#ifndef NODE_STRINGIFY
13
#define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n)
14
#define NODE_STRINGIFY_HELPER(n) #n
15
#endif
16

    
17
#if NODE_VERSION_IS_RELEASE
18
# define NODE_VERSION_STRING  NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \
19
                              NODE_STRINGIFY(NODE_MINOR_VERSION) "." \
20
                              NODE_STRINGIFY(NODE_PATCH_VERSION)
21
#else
22
# define NODE_VERSION_STRING  NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \
23
                              NODE_STRINGIFY(NODE_MINOR_VERSION) "." \
24
                              NODE_STRINGIFY(NODE_PATCH_VERSION) "-pre"
25
#endif
26

    
27
#define NODE_VERSION "v" NODE_VERSION_STRING
28

    
29

    
30
#define NODE_VERSION_AT_LEAST(major, minor, patch) \
31
  (( (major) < NODE_MAJOR_VERSION) \
32
  || ((major) == NODE_MAJOR_VERSION && (minor) < NODE_MINOR_VERSION) \
33
  || ((major) == NODE_MAJOR_VERSION && (minor) == NODE_MINOR_VERSION && (patch) <= NODE_PATCH_VERSION))
34

    
35
#endif /* NODE_VERSION_H */