diff options
Diffstat (limited to 'node.c')
-rw-r--r-- | node.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1062,6 +1062,18 @@ rb_gc_free_node(VALUE obj) } } +void +rb_node_init(NODE *n, enum node_type type, VALUE a0, VALUE a1, VALUE a2) +{ + VALUE klass = 0; + n->flags = T_NODE; + RBASIC_SET_CLASS_RAW((VALUE)n, klass); + n->u1.value = a0; + n->u2.value = a1; + n->u3.value = a2; + nd_set_type(n, type); +} + size_t rb_node_memsize(VALUE obj) { |