diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-05-17 13:57:56 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-05-17 13:59:01 +0900 |
| commit | ea7f1953c3886d7597eaed21c84fdba209ee6d9b (patch) | |
| tree | 4ca42ede3745524ea59eed22a7f1d38a99bdfe8d /include | |
| parent | 080fdbf9e8860c5151aac78081d8a731b09ad545 (diff) | |
| download | mruby-ea7f1953c3886d7597eaed21c84fdba209ee6d9b.tar.gz mruby-ea7f1953c3886d7597eaed21c84fdba209ee6d9b.zip | |
Rename `mrb_fixnum_to_str` to `mrb_integer_to_str`.
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/numeric.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/mruby/numeric.h b/include/mruby/numeric.h index 3383b00d0..1735a0ba6 100644 --- a/include/mruby/numeric.h +++ b/include/mruby/numeric.h @@ -30,12 +30,15 @@ MRB_BEGIN_DECL #endif #endif -MRB_API mrb_value mrb_fixnum_to_str(mrb_state *mrb, mrb_value x, mrb_int base); - MRB_API mrb_value mrb_num_plus(mrb_state *mrb, mrb_value x, mrb_value y); MRB_API mrb_value mrb_num_minus(mrb_state *mrb, mrb_value x, mrb_value y); MRB_API mrb_value mrb_num_mul(mrb_state *mrb, mrb_value x, mrb_value y); +MRB_API mrb_value mrb_integer_to_str(mrb_state *mrb, mrb_value x, mrb_int base); + +/* obsolete function(s); will be removed */ +#define mrb_fixnum_to_str(mrb, x, base) mrb_integer_to_str(mrb, x, base) + #ifndef __has_builtin #define __has_builtin(x) 0 #endif |
