Hacker News new | ask | show | jobs
by kr7 3446 days ago
I'm not seeing that?

In ARRAY_PUSH_BACK, it just inserts the element directly into the buffer, provided there is enough capacity. There is no separate allocation for an element.

You don't need to redefine the struct for each element type, since the macro casts 'data' (type void *) to whatever the array's type is.

1 comments

You're totally right, I don't know what I was reading >.<