comparison array.h @ 38:b156910b59b2

Wrap free() in dofree() to allow instrumenting it for debugging.
author David A. Holland
date Sat, 30 Mar 2013 21:02:25 -0400
parents 1fbcbd58742e
children 337110e7240a
comparison
equal deleted inserted replaced
37:70902cac4170 38:b156910b59b2
177 \ 177 \
178 INLINE void \ 178 INLINE void \
179 ARRAY##_destroy(struct ARRAY *a) \ 179 ARRAY##_destroy(struct ARRAY *a) \
180 { \ 180 { \
181 ARRAY##_cleanup(a); \ 181 ARRAY##_cleanup(a); \
182 free(a); \ 182 dofree(a); \
183 } \ 183 } \
184 \ 184 \
185 INLINE unsigned \ 185 INLINE unsigned \
186 ARRAY##_num(const struct ARRAY *a) \ 186 ARRAY##_num(const struct ARRAY *a) \
187 { \ 187 { \