Node.jsã®ã¢ã¸ã¥ã¼ã«ãC++ã§æ¸ãéã«èª¿ã¹ããã¨ãã¡ã¢ã ã½ã¼ã¹ ã¨ããããç·´ç¿ã§æ¸ãã¦ã¿ãã #include <v8.h> #include <node.h> #include <iostream> using namespace v8; class Hello: node::ObjectWrap { public: static void Init(const Handle<Object> target) { HandleScope scope; Local < FunctionTemplate > t = FunctionTemplate::New(New); t->InstanceTemplate()->SetInternalFieldCount(1); NODE_SET_PROTOTYPE_METHOD(t, "say", Say); target->Set(String
{{#tags}}- {{label}}
{{/tags}}