aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2009-04-01 14:55:14 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2009-04-01 14:55:14 +0000
commit51a54e1d6fd71ea24d5526c458c6252392d41967 (patch)
tree0b91ab4f40c5ce8a202cae25d05997ea81c9dc57
parentf93dcbb9c2bee3a5ffd109c3d7ed79cf5c559eae (diff)
macro for setting floats
svn path=/trunk/externals/zexy/; revision=10940
-rw-r--r--src/zexy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/zexy.h b/src/zexy.h
index 572ee23..33e9c7d 100644
--- a/src/zexy.h
+++ b/src/zexy.h
@@ -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