summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-complex/mrbgem.rake
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-03-19 10:30:16 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-03-19 10:37:10 +0900
commitd3184e4a6d8b85a22dd46f4e2909492a0a08cab1 (patch)
treeb45f9be65a970d80d4b60401e44d053f3b78b394 /mrbgems/mruby-complex/mrbgem.rake
parent08f9d5bab5092fe1193dd100765079e3e4d746b9 (diff)
downloadmruby-d3184e4a6d8b85a22dd46f4e2909492a0a08cab1.tar.gz
mruby-d3184e4a6d8b85a22dd46f4e2909492a0a08cab1.zip
complex.c: overhaul complex operators.
- define `MRB_TT_COMPLEX` - change object structure (`struct RComplex`) - add memory management for `MRB_TT_COMPLEX` - avoid operator overloading as much as possible - as a result, performance improved a log - should work with and without `Rational` defined
Diffstat (limited to 'mrbgems/mruby-complex/mrbgem.rake')
-rw-r--r--mrbgems/mruby-complex/mrbgem.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-complex/mrbgem.rake b/mrbgems/mruby-complex/mrbgem.rake
index 8f782ae18..6c4b629ca 100644
--- a/mrbgems/mruby-complex/mrbgem.rake
+++ b/mrbgems/mruby-complex/mrbgem.rake
@@ -2,6 +2,6 @@ MRuby::Gem::Specification.new('mruby-complex') do |spec|
spec.license = 'MIT'
spec.author = 'mruby developers'
spec.summary = 'Complex class'
-
+ spec.build.cc.defines << "MRB_USE_COMPLEX"
spec.add_dependency 'mruby-math', core: 'mruby-math'
end