%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/src/node-v0.10.4/benchmark/misc/function_call/
Upload File :
Create Path :
Current File : //usr/src/node-v0.10.4/benchmark/misc/function_call/binding.cc

#include <v8.h>
#include <node.h>

using namespace v8;

static int c = 0;

static Handle<Value> Hello(const Arguments& args) {
  HandleScope scope;
  return scope.Close(Integer::New(c++));
}

extern "C" void init (Handle<Object> target) {
  HandleScope scope;
  NODE_SET_METHOD(target, "hello", Hello);
}

NODE_MODULE(binding, init);

Zerion Mini Shell 1.0