mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-08 05:27:33 +02:00
Added alloca_empty_vector
This commit is contained in:
parent
ab4f9ee7a4
commit
b0d599c0de
1 changed files with 8 additions and 0 deletions
|
@ -1058,6 +1058,14 @@ typedef vector_type *vector;
|
||||||
v.num_elements = 0; \
|
v.num_elements = 0; \
|
||||||
v.elements = NULL;
|
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
|
* @brief Bytevector type
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue