node.js ã®ããã¥ã¡ã³ããè¦ã¦ããã C/C++ ã§ç°¡åã«æ¡å¼µãæ¸ãããã ã£ãã®ã§è©¦ãã¦ã¿ãã addons - Node.js Manual & Documentation ããã¥ã¡ã³ãã«è¼ã£ã¦ãã hello.cc ãã¿ã¦ã¿ãã¨ï¼ #include <v8.h> using namespace v8; extern "C" void init (Handle<Object> target) { HandleScope scope; target->Set(String::New("hello"), String::New("world")); } ãã® extern "C" void init (Handle<Object> target) ã¨ãããã¤ããjs㧠require("hello") ããã¨ãã«å¼ã°ããæããããããã®é¢æ°ã ãã¯å¿ ãå®è£ ããå¿ è¦ãããã ãã®ä¸ã® Ha
{{#tags}}- {{label}}
{{/tags}}