diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-25 07:58:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-25 07:58:49 +0000 |
commit | d700d340437a4cfba215e51b9045460900c62c3a (patch) | |
tree | 6eab445cde1fc6e53ff86ba9718180baaeb609e3 /numeric.c | |
parent | b328a43fa6e9d07ee8cfce09aaf5fdf1da7203fd (diff) |
internal.h: move inline functions
* internal.h (rb_float_value, rb_float_new): move inline functions
from ruby/ruby.h.
* numeric.c (rb_float_value, rb_float_new): define external functions
for extension libraries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -4063,3 +4063,17 @@ Init_Numeric(void) sym_to = ID2SYM(rb_intern("to")); sym_by = ID2SYM(rb_intern("by")); } + +#undef rb_float_value +double +rb_float_value(VALUE v) +{ + return rb_float_value_inline(v); +} + +#undef rb_float_new +VALUE +rb_float_new(double d) +{ + return rb_float_new_inline(d); +} |