changeset 656:38c720272dd5

Change prefix for the code generated by generator
author Thinker K.F. Li <thinker@branda.to>
date Sat, 31 Jul 2010 14:11:01 +0800
parents d58251f1bf0b
children 32d0eef1ee46
files nodejs/observer.cc nodejs/observer.m4
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/nodejs/observer.cc	Sat Jul 31 14:05:28 2010 +0800
+++ b/nodejs/observer.cc	Sat Jul 31 14:11:01 2010 +0800
@@ -54,7 +54,7 @@
     Handle<Value> evt_obj;
     Handle<Value> func_args[1];
 
-    evt_obj = xnjsmb_event_new(evt);
+    evt_obj = xnjsmb_auto_event_new(evt);
     ASSERT(!evt_obj.IsEmpty());
     func_args[0] = evt_obj;
     data->func->Call(Context::GetCurrent()->Global(), 1, func_args);
--- a/nodejs/observer.m4	Sat Jul 31 14:05:28 2010 +0800
+++ b/nodejs/observer.m4	Sat Jul 31 14:11:01 2010 +0800
@@ -1,3 +1,5 @@
+define([PROJ_PREFIX], [xnjsmb_auto_])
+
 STRUCT([mb_obj], [mb_obj_t], [INT([obj_type])], [])
 
 STRUCT([observer], [observer_t],