diff options
Diffstat (limited to 'node.h')
-rw-r--r-- | node.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -232,6 +232,14 @@ typedef struct rb_code_range_struct { rb_code_location_t last_loc; } rb_code_range_t; +static inline rb_code_range_t code_range_gen(rb_code_range_t *cr1, rb_code_range_t *cr2) +{ + rb_code_range_t cr; + cr.first_loc = cr1->first_loc; + cr.last_loc = cr2->last_loc; + return cr; +} + typedef struct RNode { VALUE flags; union { |