Browse Source

Add node.version

v0.7.4-release
Ryan 16 years ago
parent
commit
1bf9be6b37
  1. 2
      src/node.cc
  2. 2
      src/node.h
  3. 3
      wscript

2
src/node.cc

@ -230,6 +230,8 @@ Load (int argc, char *argv[])
global_obj->Set(String::NewSymbol("node"), node_obj);
node_obj->Set(String::NewSymbol("version"), String::New(NODE_VERSION));
Local<Array> arguments = Array::New(argc);
for (int i = 0; i < argc; i++) {
Local<String> arg = String::New(argv[i]);

2
src/node.h

@ -10,6 +10,8 @@
namespace node {
#define NODE_VERSION "0.1.2"
#define NODE_DEFINE_CONSTANT(target, constant) \
(target)->Set(v8::String::NewSymbol(#constant), \
v8::Integer::New(constant))

3
wscript

@ -6,9 +6,6 @@ from logging import fatal
import js2c
VERSION='0.1.2'
APPNAME='node'
srcdir = '.'
blddir = 'build'
cwd = os.getcwd()

Loading…
Cancel
Save