Mercurial > MadButterfly
comparison nodejs/observer.cc @ 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 | 62c2de99b03a |
comparison
equal
deleted
inserted
replaced
655:d58251f1bf0b | 656:38c720272dd5 |
---|---|
52 event_handler(event_t *evt, void *arg) { | 52 event_handler(event_t *evt, void *arg) { |
53 xnjsmb_observer_data *data = (xnjsmb_observer_data *)arg; | 53 xnjsmb_observer_data *data = (xnjsmb_observer_data *)arg; |
54 Handle<Value> evt_obj; | 54 Handle<Value> evt_obj; |
55 Handle<Value> func_args[1]; | 55 Handle<Value> func_args[1]; |
56 | 56 |
57 evt_obj = xnjsmb_event_new(evt); | 57 evt_obj = xnjsmb_auto_event_new(evt); |
58 ASSERT(!evt_obj.IsEmpty()); | 58 ASSERT(!evt_obj.IsEmpty()); |
59 func_args[0] = evt_obj; | 59 func_args[0] = evt_obj; |
60 data->func->Call(Context::GetCurrent()->Global(), 1, func_args); | 60 data->func->Call(Context::GetCurrent()->Global(), 1, func_args); |
61 } | 61 } |
62 | 62 |