From 51a54e1d6fd71ea24d5526c458c6252392d41967 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 1 Apr 2009 14:55:14 +0000 Subject: macro for setting floats svn path=/trunk/externals/zexy/; revision=10940 --- src/zexy.h | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.1