summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-03-18 16:27:35 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-03-19 10:37:10 +0900
commit08f9d5bab5092fe1193dd100765079e3e4d746b9 (patch)
tree627588dd204f5a7c24ea79ab17076f3eeab818eb /include
parenteb070303080b24458d3740424aa7aa8a45fa49eb (diff)
downloadmruby-08f9d5bab5092fe1193dd100765079e3e4d746b9.tar.gz
mruby-08f9d5bab5092fe1193dd100765079e3e4d746b9.zip
rational.c: overhaul rational operators.
- 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
Diffstat (limited to 'include')
-rw-r--r--include/mruby/value.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mruby/value.h b/include/mruby/value.h
index 4831b55af..39c01509d 100644
--- a/include/mruby/value.h
+++ b/include/mruby/value.h
@@ -129,6 +129,8 @@ enum mrb_vtype {
MRB_TT_FIBER,
MRB_TT_ISTRUCT,
MRB_TT_BREAK,
+ MRB_TT_COMPLEX,
+ MRB_TT_RATIONAL,
MRB_TT_MAXDEFINE
};