![]() |
|
|||
File indexing completed on 2025-02-21 10:05:22
0001 // Copyright Joyent, Inc. and other Node contributors. 0002 // 0003 // Permission is hereby granted, free of charge, to any person obtaining a 0004 // copy of this software and associated documentation files (the 0005 // "Software"), to deal in the Software without restriction, including 0006 // without limitation the rights to use, copy, modify, merge, publish, 0007 // distribute, sublicense, and/or sell copies of the Software, and to permit 0008 // persons to whom the Software is furnished to do so, subject to the 0009 // following conditions: 0010 // 0011 // The above copyright notice and this permission notice shall be included 0012 // in all copies or substantial portions of the Software. 0013 // 0014 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 0015 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 0016 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN 0017 // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 0018 // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 0019 // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 0020 // USE OR OTHER DEALINGS IN THE SOFTWARE. 0021 0022 #ifndef SRC_NODE_VERSION_H_ 0023 #define SRC_NODE_VERSION_H_ 0024 0025 #define NODE_MAJOR_VERSION 22 0026 #define NODE_MINOR_VERSION 4 0027 #define NODE_PATCH_VERSION 0 0028 0029 #define NODE_VERSION_IS_LTS 0 0030 #define NODE_VERSION_LTS_CODENAME "" 0031 0032 #define NODE_VERSION_IS_RELEASE 1 0033 0034 #ifndef NODE_STRINGIFY 0035 #define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n) 0036 #define NODE_STRINGIFY_HELPER(n) #n 0037 #endif 0038 0039 #ifndef NODE_RELEASE 0040 #define NODE_RELEASE "node" 0041 #endif 0042 0043 #ifndef NODE_TAG 0044 # if NODE_VERSION_IS_RELEASE 0045 # define NODE_TAG "" 0046 # else 0047 # define NODE_TAG "-pre" 0048 # endif 0049 #else 0050 // NODE_TAG is passed without quotes when rc.exe is run from msbuild 0051 # define NODE_EXE_VERSION NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \ 0052 NODE_STRINGIFY(NODE_MINOR_VERSION) "." \ 0053 NODE_STRINGIFY(NODE_PATCH_VERSION) \ 0054 NODE_STRINGIFY(NODE_TAG) 0055 #endif 0056 0057 # define NODE_VERSION_STRING NODE_STRINGIFY(NODE_MAJOR_VERSION) "." \ 0058 NODE_STRINGIFY(NODE_MINOR_VERSION) "." \ 0059 NODE_STRINGIFY(NODE_PATCH_VERSION) \ 0060 NODE_TAG 0061 #ifndef NODE_EXE_VERSION 0062 # define NODE_EXE_VERSION NODE_VERSION_STRING 0063 #endif 0064 0065 #define NODE_VERSION "v" NODE_VERSION_STRING 0066 0067 0068 #define NODE_VERSION_AT_LEAST(major, minor, patch) \ 0069 (( (major) < NODE_MAJOR_VERSION) \ 0070 || ((major) == NODE_MAJOR_VERSION && (minor) < NODE_MINOR_VERSION) \ 0071 || ((major) == NODE_MAJOR_VERSION && \ 0072 (minor) == NODE_MINOR_VERSION && (patch) <= NODE_PATCH_VERSION)) 0073 0074 /** 0075 * Node.js will refuse to load modules that weren't compiled against its own 0076 * module ABI number, exposed as the process.versions.modules property. 0077 * 0078 * Node.js will refuse to load modules with a non-matching ABI version. The 0079 * version number here should be changed whenever an ABI-incompatible API change 0080 * is made in the C++ side, including in V8 or other dependencies. 0081 * 0082 * Node.js will not change the module version during a Major release line 0083 * We will, at times update the version of V8 shipped in the release line 0084 * if it can be made ABI compatible with the previous version. 0085 * 0086 * Embedders building Node.js can define NODE_EMBEDDER_MODULE_VERSION to 0087 * override the default value of NODE_MODULE_VERSION. 0088 * 0089 * The registry of used NODE_MODULE_VERSION numbers is located at 0090 * https://github.com/nodejs/node/blob/HEAD/doc/abi_version_registry.json 0091 * Extenders, embedders and other consumers of Node.js that require ABI 0092 * version matching should open a pull request to reserve a number in this 0093 * registry. 0094 */ 0095 #if defined(NODE_EMBEDDER_MODULE_VERSION) 0096 #define NODE_MODULE_VERSION NODE_EMBEDDER_MODULE_VERSION 0097 #else 0098 #define NODE_MODULE_VERSION 127 0099 #endif 0100 0101 // The NAPI_VERSION supported by the runtime. This is the inclusive range of 0102 // versions which the Node.js binary being built supports. 0103 #define NODE_API_SUPPORTED_VERSION_MAX 9 0104 #define NODE_API_SUPPORTED_VERSION_MIN 1 0105 0106 // Node API modules use NAPI_VERSION 8 by default if it is not explicitly 0107 // specified. It must be always 8. 0108 #define NODE_API_DEFAULT_MODULE_API_VERSION 8 0109 0110 #endif // SRC_NODE_VERSION_H_
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |