# HG changeset patch # User Thinker K.F. Li # Date 1280556661 -28800 # Node ID 38c720272dd5ff674b4278e3df61b2f402f156ec # Parent d58251f1bf0be8309a6edcbc0a3e89d6a3b045f0 Change prefix for the code generated by generator diff -r d58251f1bf0b -r 38c720272dd5 nodejs/observer.cc --- 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 evt_obj; Handle 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); diff -r d58251f1bf0b -r 38c720272dd5 nodejs/observer.m4 --- 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],