c++写nodejs的扩展模块
by 伍雪颖
记住目录各文件的位置,主要是3个文件,hello.cc,binding.gyp,hello.js
hello.cc代码:
#include
#include
using namespace v8; Handle
SayHello(const Arguments& args) { HandleScope scope; return scope.Close(String::New("Hello world!")); } void Init_Hello(Handle