Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/BOAST/Language/Algorithm.rb
Instance Method Summary collapse
Instance Method Details
#to_var ⇒ Object
186 187 188 189 190 191 192 |
# File 'lib/BOAST/Language/Algorithm.rb', line 186 def to_var if self < 0 then return BOAST::Variable::new("#{self}", BOAST::Int, :signed => true, :constant => self ) else return BOAST::Variable::new("#{self}", BOAST::Int, :signed => false, :constant => self ) end end |