--- libaitio/inc/aitio.h 2012/04/10 15:27:33 1.16.2.10 +++ libaitio/inc/aitio.h 2012/04/10 15:33:41 1.16.2.11 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.16.2.10 2012/04/10 15:27:33 misho Exp $ +* $Id: aitio.h,v 1.16.2.11 2012/04/10 15:33:41 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -615,6 +615,10 @@ int io_arrayVacuum(array_t * __restrict arr, int fromW if (_fri) \ free(*((_arr)->arr_data + _d)); \ *((_arr)->arr_data + _d) = NULL; \ + } while (0) +#define io_arraySyncLast(_arr) do { \ + assert((_arr)); \ + (_arr)->arr_last = io_arrayLen((_arr)); \ } while (0) /*