vector icon indicating copy to clipboard operation
vector copied to clipboard

Add support for typed static initialization

Open Danoloan10 opened this issue 5 years ago • 0 comments

This edit makes it possible to initialize a vector without calling vector_setup like so:

Vector vector = VECTOR_TYPED_INITIALIZER(int)
int i = 0;
vector_push_back(&vector, &i); // no need to call setup

This allows easy initialization of static/global vectors.

Danoloan10 avatar May 26 '20 09:05 Danoloan10