Skip to content

Commit

Permalink
Working on v15.11.1
Browse files Browse the repository at this point in the history
PR-URL: #37569
  • Loading branch information
targos committed Mar 3, 2021
1 parent d816b24 commit 6e35d67
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions src/node_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@

#define NODE_MAJOR_VERSION 15
#define NODE_MINOR_VERSION 11
#define NODE_PATCH_VERSION 0
#define NODE_PATCH_VERSION 1

#define NODE_VERSION_IS_LTS 0
#define NODE_VERSION_LTS_CODENAME ""

#define NODE_VERSION_IS_RELEASE 1
#define NODE_VERSION_IS_RELEASE 0

#ifndef NODE_STRINGIFY
#define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n)
Expand All @@ -41,35 +41,34 @@
#endif

#ifndef NODE_TAG
# if NODE_VERSION_IS_RELEASE
# define NODE_TAG ""
# else
# define NODE_TAG "-pre"
# endif
#if NODE_VERSION_IS_RELEASE
#define NODE_TAG ""
#else
#define NODE_TAG "-pre"
#endif
#else
// NODE_TAG is passed without quotes when rc.exe is run from msbuild
# define NODE_EXE_VERSION NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \
NODE_STRINGIFY(NODE_MINOR_VERSION) "." \
NODE_STRINGIFY(NODE_PATCH_VERSION) \
NODE_STRINGIFY(NODE_TAG)
#define NODE_EXE_VERSION \
NODE_STRINGIFY(NODE_MAJOR_VERSION) \
"." NODE_STRINGIFY(NODE_MINOR_VERSION) "." NODE_STRINGIFY( \
NODE_PATCH_VERSION) NODE_STRINGIFY(NODE_TAG)
#endif

# define NODE_VERSION_STRING NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \
NODE_STRINGIFY(NODE_MINOR_VERSION) "." \
NODE_STRINGIFY(NODE_PATCH_VERSION) \
NODE_TAG
#define NODE_VERSION_STRING \
NODE_STRINGIFY(NODE_MAJOR_VERSION) \
"." NODE_STRINGIFY(NODE_MINOR_VERSION) "." NODE_STRINGIFY( \
NODE_PATCH_VERSION) NODE_TAG
#ifndef NODE_EXE_VERSION
# define NODE_EXE_VERSION NODE_VERSION_STRING
#define NODE_EXE_VERSION NODE_VERSION_STRING
#endif

#define NODE_VERSION "v" NODE_VERSION_STRING


#define NODE_VERSION_AT_LEAST(major, minor, patch) \
(( (major) < NODE_MAJOR_VERSION) \
|| ((major) == NODE_MAJOR_VERSION && (minor) < NODE_MINOR_VERSION) \
|| ((major) == NODE_MAJOR_VERSION && \
(minor) == NODE_MINOR_VERSION && (patch) <= NODE_PATCH_VERSION))
#define NODE_VERSION_AT_LEAST(major, minor, patch) \
(((major) < NODE_MAJOR_VERSION) || \
((major) == NODE_MAJOR_VERSION && (minor) < NODE_MINOR_VERSION) || \
((major) == NODE_MAJOR_VERSION && (minor) == NODE_MINOR_VERSION && \
(patch) <= NODE_PATCH_VERSION))

/**
* Node.js will refuse to load modules that weren't compiled against its own
Expand All @@ -93,6 +92,6 @@

// The NAPI_VERSION provided by this version of the runtime. This is the version
// which the Node binary being built supports.
#define NAPI_VERSION 7
#define NAPI_VERSION 7

#endif // SRC_NODE_VERSION_H_

0 comments on commit 6e35d67

Please sign in to comment.