--- libelwix/inc/elwix/aarray.h 2019/01/23 17:40:37 1.9.4.2 +++ libelwix/inc/elwix/aarray.h 2019/08/14 11:39:11 1.10.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aarray.h,v 1.9.4.2 2019/01/23 17:40:37 misho Exp $ +* $Id: aarray.h,v 1.10.2.1 2019/08/14 11:39:11 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -72,6 +72,7 @@ typedef struct _tagArray { e_free((_arr)->arr_data[__d]); \ (_arr)->arr_data[__d] = NULL; \ } while (0) +#define array_Var(_arr, _d) (assert((_arr) && (_arr)->arr_num > _d), (ait_val_t*) ((_arr)->arr_data + _d)) /* * array_Init() - Create and initialize dynamic array