mrbc.c: simplify place holder functions; #5622

parent c088af87
...@@ -368,16 +368,29 @@ mrb_final_mrbgems(mrb_state *mrb) ...@@ -368,16 +368,29 @@ mrb_final_mrbgems(mrb_state *mrb)
#endif #endif
#ifdef MRB_USE_COMPLEX #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_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 #endif
#ifdef MRB_USE_RATIONAL #ifdef MRB_USE_RATIONAL
mrb_value 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_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 #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment