class BOAST::BasicBinaryOperator

Public Class Methods

string(arg1, arg2, return_type) click to toggle source
# File lib/BOAST/Language/Operators.rb, line 40
def BasicBinaryOperator.string(arg1, arg2, return_type)
  if lang == C and (arg1.instance_of? Variable and arg2.instance_of? Variable) and (arg1.type.vector_length > 1 or arg2.type.vector_length > 1) then
    instruction = intrinsics(intr_symbol, return_type.type)
    a1 = convert(arg1, return_type.type)
    a2 = convert(arg2, return_type.type)
    return "#{instruction}( #{a1}, #{a2} )"
  else
    return basic_usage( arg1, arg2 )
  end
end