| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/wave2future/node/debugProcess/benchmark/function_call/binding.cc | [Back] [Original] |
#include
#include
#include
using namespace v8;
static int c = 0;
static Handle Hello(const Arguments& args) {
HandleScope scope;
//time_t tv = time(NULL);
return scope.Close(Integer::New(c++));
}
extern "C" void init (Handle target) {
HandleScope scope;
//target->Set(String::New("hello"), String::New("World"));
NODE_SET_METHOD(target, "hello", Hello);
}
| Web Proxy Viewer | New URL | Original Page |