diff nodejs/hello.cc @ 544:16f4f8305c8f Android_Skia

Start MadButterfly nodejs plugin
author Thinker K.F. Li <thinker@branda.to>
date Fri, 04 Jun 2010 22:29:26 +0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nodejs/hello.cc	Fri Jun 04 22:29:26 2010 +0800
@@ -0,0 +1,10 @@
+#include <v8.h>
+
+using namespace v8;
+
+extern "C" void
+init(Handle<Object> target) {
+    HandleScope scope;
+
+    target->Set(String::New("Hello"), String::New("World"));
+}