Node.js插件
(可以在找到完整的仓库)有时您想直接从节点应用程序使用现有的c ++代码。 您可以使用Node.js插件, 和库来实现。
C ++代码
// hello.cc
# include < node>
namespace demo {
using v8::FunctionCallbackInfo;
using v8::Isolate;
using v8::Local;
using v8::Object;
using v8::String;
using v8::Value;
void Method ( const FunctionCallbackInfo<Value>& args) {
Isolate* isolate = args. GetIsolate ();
args. GetReturnValue (). Set ( S
评论0
最新资源