Added alloca_empty_vector

This commit is contained in:
Justin Ethier 2018-11-21 18:53:42 -05:00
parent ab4f9ee7a4
commit b0d599c0de

View file

@ -1058,6 +1058,14 @@ typedef vector_type *vector;
v.num_elements = 0; \
v.elements = NULL;
#define alloca_empty_vector(v) \
vector_type *v = alloca(sizeof(vector_type)); \
v->hdr.mark = gc_color_red; \
v->hdr.grayed = 0; \
v->tag = vector_tag; \
v->num_elements = 0; \
v->elements = NULL;
/**
* @brief Bytevector type
*