Move the initial capacity definition to the header file
This commit is contained in:
parent
a08ce4a06c
commit
fef6387120
|
@ -11,8 +11,6 @@
|
|||
|
||||
#include "aligned_vector.h"
|
||||
|
||||
#define ALIGNED_VECTOR_INITIAL_CAPACITY 256u
|
||||
|
||||
void aligned_vector_init(AlignedVector* vector, unsigned int element_size) {
|
||||
vector->size = vector->capacity = 0;
|
||||
vector->element_size = element_size;
|
||||
|
|
|
@ -8,6 +8,8 @@ typedef struct {
|
|||
unsigned int element_size;
|
||||
} AlignedVector;
|
||||
|
||||
#define ALIGNED_VECTOR_INITIAL_CAPACITY 256u
|
||||
|
||||
void aligned_vector_init(AlignedVector* vector, unsigned int element_size);
|
||||
void aligned_vector_reserve(AlignedVector* vector, unsigned int element_count);
|
||||
void aligned_vector_push_back(AlignedVector* vector, const void* objs, unsigned int count);
|
||||
|
|
Loading…
Reference in New Issue
Block a user