Method: RubyToAnsiC#process_array
- Defined in:
- lib/ruby_to_ansi_c.rb
#process_array(exp) ⇒ Object
Array is used as call arg lists and as initializers for variables.
215 216 217 218 219 220 221 222 223 224 225 226 |
# File 'lib/ruby_to_ansi_c.rb', line 215 def process_array(exp) code = [] until exp.empty? do code << process(exp.shift) end s = code.join ', ' s = "rb_ary_new()" if s.empty? # HACK return s end |