summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2022-01-05 19:39:39 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2022-01-05 19:39:39 +0900
commitaaa3bd0e8078ec79c49ed4230f4e6e872ae051e8 (patch)
tree03a3a98967b8caaf6342a1b087b401b716f77b06
parentc088af87b8ca4ab37d587488140ea95de8eb0a7b (diff)
downloadmruby-aaa3bd0e8078ec79c49ed4230f4e6e872ae051e8.tar.gz
mruby-aaa3bd0e8078ec79c49ed4230f4e6e872ae051e8.zip
mrbc.c: simplify place holder functions; #5622
-rw-r--r--mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c b/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c
index c3e37e0a6..7732914d7 100644
--- a/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c
+++ b/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c
@@ -368,16 +368,29 @@ mrb_final_mrbgems(mrb_state *mrb)
#endif
#ifdef MRB_USE_COMPLEX
+mrb_value mrb_complex_to_i(mrb_state *mrb, mrb_value comp)
+{
+ /* dummy method */
+ return mrb_nil_value();
+}
mrb_value mrb_complex_to_f(mrb_state *mrb, mrb_value comp)
{
- mrb_raise(mrb, E_NOTIMP_ERROR, "unavailable for core only");
+ /* dummy method */
+ return mrb_nil_value();
}
#endif
#ifdef MRB_USE_RATIONAL
mrb_value
+mrb_rational_to_i(mrb_state *mrb, mrb_value rat)
+{
+ /* dummy method */
+ return mrb_nil_value();
+}
+mrb_value
mrb_rational_to_f(mrb_state *mrb, mrb_value rat)
{
- mrb_raise(mrb, E_NOTIMP_ERROR, "unavailable for core only");
+ /* dummy method */
+ return mrb_nil_value();
}
#endif