diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-04-01 14:55:14 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-04-01 14:55:14 +0000 |
commit | 51a54e1d6fd71ea24d5526c458c6252392d41967 (patch) | |
tree | 0b91ab4f40c5ce8a202cae25d05997ea81c9dc57 /src/zexy.h | |
parent | f93dcbb9c2bee3a5ffd109c3d7ed79cf5c559eae (diff) |
macro for setting floats
svn path=/trunk/externals/zexy/; revision=10940
Diffstat (limited to 'src/zexy.h')
-rw-r--r-- | src/zexy.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -144,10 +144,12 @@ static void zexy_register(char*object){object=0;} # define zarray_t t_word # define zarray_getarray garray_getfloatwords # define zarray_getfloat(pointer, index) (pointer[index].w_float) +# define zarray_setfloat(pointer, index, value) ((pointer[index].w_float)=value) #else # define zarray_t t_float # define zarray_getarray garray_getfloatarray # define zarray_getfloat(pointer, index) (pointer[index]) +# define zarray_setfloat(pointer, index, value) ((pointer[index])=value) #endif |