From 229b370e65204c0f20460f42e862b7de7685f31a Mon Sep 17 00:00:00 2001 From: LAN-TW Date: Mon, 17 Dec 2012 11:18:19 +0800 Subject: =?UTF-8?q?=E6=8F=90=E4=BE=9B=E7=9B=B4=E6=8E=A5=E5=AD=98=E5=8F=96?= =?UTF-8?q?=E9=99=A3=E5=88=97=E6=8C=87=E6=A8=99=E7=9A=84=20macro?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- l4darr/l4darr.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'l4darr/l4darr.h') diff --git a/l4darr/l4darr.h b/l4darr/l4darr.h index d4aab12..1d17471 100644 --- a/l4darr/l4darr.h +++ b/l4darr/l4darr.h @@ -23,6 +23,7 @@ int l4da_setlen(L4DA*, int); int l4da_setmax(L4DA*, int); int l4da_strip(L4DA*); #define l4da_itemsize(arr) ((arr)->arr_itemsize) +#define l4da_data(arr) ((arr)->arr_data) #define l4da_v(arr, type, num) \ (*(((type*)((arr)->arr_data))+(num))) #define l4da_vp(arr, num) \ @@ -53,6 +54,7 @@ void l4da2_free(L4DA2*); #define l4da2_getlenx(arr) ((arr)->arr_lenx) #define l4da2_getleny(arr) ((arr)->arr_leny) #define l4da2_itemsize(arr) ((arr)->arr_itemsize) +#define l4da2_data(arr) ((arr)->arr_data) #define l4da2_v(arr, type, numx, numy) \ (*(((type*)((arr)->arr_data))+((numx)*(l4da2_getleny(arr)))+(numy))) #define l4da2_vp(arr, numx, numy) \ -- cgit v1.2.3