Mercurial > MadButterfly
comparison nodejs/observer.m4 @ 650:123e7eeff10c
Generate JS binding for a function
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 29 Jul 2010 13:07:25 +0800 |
parents | 2030e5d9f7f7 |
children | aa52883534fc |
comparison
equal
deleted
inserted
replaced
649:2030e5d9f7f7 | 650:123e7eeff10c |
---|---|
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 [OBJ([observer], [observer_t])]), |
12 METHOD([remove_observer], [subject_remove_observer], | 12 METHOD([remove_observer], [subject_remove_observer], |
13 (OBJ([observer], [observer_t])), 1, [])]) | 13 (OBJ([observer], [observer_t])), 1, [])]) |
14 | |
15 FUNCTION([load], [my_load], [INT(sz), STR(name)], 2, [OBJ([test],[test_t])]) |