• dearblue's avatar
    Call functions directly from `mrb_ensure_float_type()` · ac22a63a
    dearblue authored
    ref. commit 7f40b645
    
    Currently, the build configurations `MRB_USE_COMPLEX` and `MRB_USE_RATIONAL` are not listed in the documentation.
    In other words, they are hidden settings.
    They are defined in `mrbgems/mruby-{complex,rational}/mrbgem.rake`.
    So this patch assumes that it is safe to refer to these functions in core-gems directly from core functions.
    
    However, applications that link with `libmruby_core.a` will have compatibility issues.
    In fact, `mrbgems/mruby-bin-mrbc` links with `libmruby_core.a`, so I had to prepare a dummy function.
    ac22a63a
complex.c 10.8 KB