Method: RLTK::CG::ConstantInteger#cmp

Defined in:
lib/rltk/cg/value.rb

#cmp(pred, rhs) ⇒ Int1

Compare this value to another value.

Parameters:

  • pred (Symbol)

    An integer predicate.

  • rhs (ConstantInteger)

    Value to compare to.

Returns:

  • (Int1)

    Value used to represent a Boolean value.

See Also:



887
888
889
# File 'lib/rltk/cg/value.rb', line 887

def cmp(pred, rhs)
	Int1.new(Bindings.const_i_cmp(pred, @ptr, rhs))
end