Mercurial > MadButterfly
diff nodejs/coord.m4 @ 680:a588eefd3f04
Refactor to xnjsmb_coord_mod().
Move code of initializing attributes of JS coord objects to
xnjsmb_coord_mod().
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 06 Aug 2010 22:56:58 +0800 |
parents | b6fb543d69ee |
children | d8764f10e141 |
line wrap: on
line diff
--- a/nodejs/coord.m4 Fri Aug 06 19:31:37 2010 +0800 +++ b/nodejs/coord.m4 Fri Aug 06 22:56:58 2010 +0800 @@ -3,4 +3,5 @@ [METHOD([add_shape], [xnjsmb_coord_add_shape], (SELF, OBJ([shape], [shape], [shape_t]), ERR), 1, [])], ((GET_INDEX, (coord_get_index, NUMBER)), - (SET_INDEX, (coord_set_index, NUMBER)))) + (SET_INDEX, (coord_set_index, NUMBER)), + ([STMOD], [xnjsmb_coord_mod])))