mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
08f9d5bab5
- define `MRB_TT_RATIONAL` - change object structure (`struct RRational`) - add memory management for `MRB_TT_RATIONAL` - avoid operator overloading as much as possible - implement division overloading in C - as a result, performance improved a lot
7 lines
201 B
Ruby
7 lines
201 B
Ruby
MRuby::Gem::Specification.new('mruby-rational') do |spec|
|
|
spec.license = 'MIT'
|
|
spec.author = 'mruby developers'
|
|
spec.summary = 'Rational class'
|
|
spec.build.cc.defines << "MRB_USE_RATIONAL"
|
|
end
|