231103.1 · Reorganize examples into categorized folders (#341)
#ifndef MYOBJECT_H
#define MYOBJECT_H
#include <nan.h>
class MyObject : public Nan::ObjectWrap {
public:
static void Init();
static v8::Local<v8::Object> NewInstance(v8::Local<v8::Value> arg);
private:
MyObject();
~MyObject();
static Nan::Persistent<v8::Function> constructor;
static void New(const Nan::FunctionCallbackInfo<v8::Value>& info);
static void PlusOne(const Nan::FunctionCallbackInfo<v8::Value>& info);
double counter_;
};
#endif