--- libelwix/inc/elwix/aarray.h 2013/05/26 20:03:18 1.1.1.1.6.2 +++ libelwix/inc/elwix/aarray.h 2013/06/19 00:11:16 1.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aarray.h,v 1.1.1.1.6.2 2013/05/26 20:03:18 misho Exp $ +* $Id: aarray.h,v 1.3 2013/06/19 00:11:16 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -58,6 +58,7 @@ typedef struct _tagArray { #define array_Zero(_arr) (assert((_arr)), memset((_arr)->arr_data, 0, \ array_Size((_arr)) * sizeof(intptr_t))) +#define array_Ptr(_arr, _d) ((_arr) ? (_arr)->arr_data[_d] : NULL) #define array_Get2(_arr, _d) (assert((_arr) && (_arr)->arr_num > _d), ((_arr)->arr_data + _d)) #define array_Get(_arr, _d) (assert((_arr) && (_arr)->arr_num > _d), (_arr)->arr_data[_d]) #define array(_arr, _d, _type) (assert((_arr) && (_arr)->arr_num > _d), \