comparison nodejs/observer.m4 @ 649:2030e5d9f7f7

Support return value for methodes of JS binding
author Thinker K.F. Li <thinker@branda.to>
date Thu, 29 Jul 2010 01:37:15 +0800
parents e13dbfd37eab
children 123e7eeff10c
comparison
equal deleted inserted replaced
648:e13dbfd37eab 649:2030e5d9f7f7
5 STRUCT([observer], [observer_t], 5 STRUCT([observer], [observer_t],
6 [INT([type])], []) 6 [INT([type])], [])
7 7
8 STRUCT([subject], [subject_t], [], 8 STRUCT([subject], [subject_t], [],
9 [METHOD([add_event_observer], [subject_add_event_observer], 9 [METHOD([add_event_observer], [subject_add_event_observer],
10 (INT([type]), FUNC([handler])), 2), 10 (INT([type]), FUNC([handler])), 2,
11 [OBJ([observer], [observer_t])]),
11 METHOD([remove_observer], [subject_remove_observer], 12 METHOD([remove_observer], [subject_remove_observer],
12 (OBJ([observer], [observer_t])), 1)]) 13 (OBJ([observer], [observer_t])), 1, [])])