diff nodejs/mbfly_njs.cc @ 547:371690a166df Android_Skia

Remove hello.c and initial plugin at mbfly_njs.cc
author Thinker K.F. Li <thinker@branda.to>
date Sat, 05 Jun 2010 22:29:22 +0800
parents 249bcbf07eb0
children f69b0814ef3c
line wrap: on
line diff
--- a/nodejs/mbfly_njs.cc	Sat Jun 05 22:24:04 2010 +0800
+++ b/nodejs/mbfly_njs.cc	Sat Jun 05 22:29:22 2010 +0800
@@ -1,2 +1,11 @@
 #include <stdio.h>
+#include <v8.h>
 
+using namespace v8;
+
+extern "C" void
+init(Handle<Object> target) {
+    HandleScope scope;
+
+    target->Set(String::New("Hello"), String::New("World"));
+}