Cyclone Scheme  0.28.0

◆ set_pair_as_expr

#define set_pair_as_expr (   n,
  a,
 
)
Value:
(((pair)(n))->hdr.mark = gc_color_red, \
((pair)(n))->hdr.grayed = 0, \
((pair)(n))->hdr.immutable = 0, \
((pair)(n))->tag = pair_tag, \
((pair)(n))->pair_car = a, \
((pair)(n))->pair_cdr = d, \
(n))

Set members of the given pair, using a single expression

Parameters
n- Pointer to a pair object
a- Object to assign to car
d- Object to assign to cdr
gc_color_red
#define gc_color_red
Definition: types.h:297
pair_type
The pair (cons) type.
Definition: types.h:1247
pair
pair_type * pair
Definition: types.h:1254
pair_tag
@ pair_tag
Definition: types.h:64