1 /* -----------------------------------------------------------------------------
2 * Ruby API portion that goes into the runtime
3 * ----------------------------------------------------------------------------- */
10 SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
14 if (TYPE(target) != T_ARRAY) {
16 target = rb_ary_new();
17 rb_ary_push(target, o2);
19 rb_ary_push(target, o);
24 /* For ruby1.8.4 and earlier. */
25 #ifndef RUBY_INIT_STACK
26 RUBY_EXTERN void Init_stack(VALUE* addr);
27 # define RUBY_INIT_STACK \
28 VALUE variable_in_this_stack_frame; \
29 Init_stack(&variable_in_this_stack_frame);