diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-01-01 22:37:14 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-01-01 22:37:14 +0900 |
| commit | 9174b18f34cdee25fdf8433ee33642932b06a445 (patch) | |
| tree | a477a4a274b51302331c22a3d8ba538587203363 /src/error.c | |
| parent | b9c78c3fccf0917a8f4b05e02b79d80eeb83982d (diff) | |
| download | mruby-9174b18f34cdee25fdf8433ee33642932b06a445.tar.gz mruby-9174b18f34cdee25fdf8433ee33642932b06a445.zip | |
Rename `mrb_num_args_error` to `mrb_argnum_error`; ref #4863
Diffstat (limited to 'src/error.c')
| -rw-r--r-- | src/error.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/error.c b/src/error.c index 045931c50..260ca7a3d 100644 --- a/src/error.c +++ b/src/error.c @@ -481,7 +481,7 @@ exception_call: break; default: - mrb_num_args_error(mrb, argc, 0, 3); + mrb_argnum_error(mrb, argc, 0, 3); break; } if (argc > 0) { @@ -538,7 +538,7 @@ mrb_frozen_error(mrb_state *mrb, void *frozen_obj) } MRB_API mrb_noreturn void -mrb_num_args_error(mrb_state *mrb, mrb_int argc, int min, int max) +mrb_argnum_error(mrb_state *mrb, mrb_int argc, int min, int max) { #define FMT(exp) "wrong number of arguments (given %i, expected " exp ")" if (min == max) |
