comparison 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
comparison
equal deleted inserted replaced
679:799c852b9065 680:a588eefd3f04
1 define([PROJ_PREFIX], [xnjsmb_auto_])dnl 1 define([PROJ_PREFIX], [xnjsmb_auto_])dnl
2 STRUCT([coord], [coord_t], [], 2 STRUCT([coord], [coord_t], [],
3 [METHOD([add_shape], [xnjsmb_coord_add_shape], 3 [METHOD([add_shape], [xnjsmb_coord_add_shape],
4 (SELF, OBJ([shape], [shape], [shape_t]), ERR), 1, [])], 4 (SELF, OBJ([shape], [shape], [shape_t]), ERR), 1, [])],
5 ((GET_INDEX, (coord_get_index, NUMBER)), 5 ((GET_INDEX, (coord_get_index, NUMBER)),
6 (SET_INDEX, (coord_set_index, NUMBER)))) 6 (SET_INDEX, (coord_set_index, NUMBER)),
7 ([STMOD], [xnjsmb_coord_mod])))