summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-mrbc/tools
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2022-01-02 18:04:18 +0900
committerGitHub <[email protected]>2022-01-02 18:04:18 +0900
commit4e0b1622536ea43dae3f628f4f2ca02727bcc428 (patch)
tree86ab763545c76ae639148be59d1f0c739e755063 /mrbgems/mruby-bin-mrbc/tools
parentab4baba283a15c7b44812f60afbd35fe17d9807c (diff)
parentac22a63ae3c29ac3921f53ac63ae981ab0def744 (diff)
downloadmruby-4e0b1622536ea43dae3f628f4f2ca02727bcc428.tar.gz
mruby-4e0b1622536ea43dae3f628f4f2ca02727bcc428.zip
Merge pull request #5622 from dearblue/to_f
Call functions directly from `mrb_ensure_float_type()`
Diffstat (limited to 'mrbgems/mruby-bin-mrbc/tools')
-rw-r--r--mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c b/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c
index 8b0b6dc57..c3e37e0a6 100644
--- a/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c
+++ b/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c
@@ -366,3 +366,18 @@ mrb_final_mrbgems(mrb_state *mrb)
{
}
#endif
+
+#ifdef MRB_USE_COMPLEX
+mrb_value mrb_complex_to_f(mrb_state *mrb, mrb_value comp)
+{
+ mrb_raise(mrb, E_NOTIMP_ERROR, "unavailable for core only");
+}
+#endif
+
+#ifdef MRB_USE_RATIONAL
+mrb_value
+mrb_rational_to_f(mrb_state *mrb, mrb_value rat)
+{
+ mrb_raise(mrb, E_NOTIMP_ERROR, "unavailable for core only");
+}
+#endif