mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-03 19:26:34 +02:00
Added alloca_pair
This commit is contained in:
parent
44efba7c6d
commit
5752f6ace5
1 changed files with 8 additions and 0 deletions
|
@ -1095,6 +1095,14 @@ typedef pair_type *pair;
|
|||
n.pair_car = a; \
|
||||
n.pair_cdr = d;
|
||||
|
||||
#define alloca_pair(n,a,d) \
|
||||
pair_type *n = alloca(sizeof(pair_type)); \
|
||||
n->hdr.mark = gc_color_red; \
|
||||
n->hdr.grayed = 0; \
|
||||
n->tag = pair_tag; \
|
||||
n->pair_car = a; \
|
||||
n->pair_cdr = d;
|
||||
|
||||
#define set_pair(n,a,d) \
|
||||
n->hdr.mark = gc_color_red; \
|
||||
n->hdr.grayed = 0; \
|
||||
|
|
Loading…
Add table
Reference in a new issue