Browse Source

src: move NODE_MODULE_VERSION to node_version.h

v0.11.5-release
Ben Noordhuis 12 years ago
parent
commit
44ed42bd97
  1. 10
      src/node.h
  2. 8
      src/node_version.h

10
src/node.h

@ -58,8 +58,10 @@
# define SIGKILL 9 # define SIGKILL 9
#endif #endif
#include "node_version.h" /* NODE_MODULE_VERSION */
#include "uv.h" #include "uv.h"
#include "v8.h" #include "v8.h"
#include <sys/types.h> /* struct stat */ #include <sys/types.h> /* struct stat */
#include <sys/stat.h> #include <sys/stat.h>
#include <assert.h> #include <assert.h>
@ -202,14 +204,6 @@ struct node_module_struct {
node_module_struct* get_builtin_module(const char *name); node_module_struct* get_builtin_module(const char *name);
/**
* When this version number is changed, node.js will refuse
* to load older modules. This should be done whenever
* an API is broken in the C++ side, including in v8 or
* other dependencies.
*/
#define NODE_MODULE_VERSION 0x000C /* v0.12 */
#define NODE_STANDARD_MODULE_STUFF \ #define NODE_STANDARD_MODULE_STUFF \
NODE_MODULE_VERSION, \ NODE_MODULE_VERSION, \
NULL, \ NULL, \

8
src/node_version.h

@ -57,4 +57,12 @@
|| ((major) == NODE_MAJOR_VERSION && (minor) < NODE_MINOR_VERSION) \ || ((major) == NODE_MAJOR_VERSION && (minor) < NODE_MINOR_VERSION) \
|| ((major) == NODE_MAJOR_VERSION && (minor) == NODE_MINOR_VERSION && (patch) <= NODE_PATCH_VERSION)) || ((major) == NODE_MAJOR_VERSION && (minor) == NODE_MINOR_VERSION && (patch) <= NODE_PATCH_VERSION))
/**
* When this version number is changed, node.js will refuse
* to load older modules. This should be done whenever
* an API is broken in the C++ side, including in v8 or
* other dependencies.
*/
#define NODE_MODULE_VERSION 0x000C /* v0.12 */
#endif /* NODE_VERSION_H */ #endif /* NODE_VERSION_H */

Loading…
Cancel
Save