mrbc.c: simplify place holder functions;
@@ -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
