Class: Duby::Compiler::C::MathCompiler

Inherits:
Object
  • Object
show all
Defined in:
lib/duby/c/compiler.rb

Instance Method Summary collapse

Instance Method Details

#call(compiler, call) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/duby/c/compiler.rb', line 8

def call(compiler, call)
  call.target.compile(compiler)

  compiler.src << " #{call.name} "

  call.parameters.each {|param| param.compile(compiler)}
end