diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-07-13 07:08:01 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-07-13 11:07:59 +0900 |
| commit | 9c311ddc938ad2cc88e4119374e47cd496e15a94 (patch) | |
| tree | 12589cca2f3b80cb16ad072b17e020ecd5003daa /include | |
| parent | 4dac03cb2d53227bde2e5f50e70ca79596807e11 (diff) | |
| download | mruby-9c311ddc938ad2cc88e4119374e47cd496e15a94.tar.gz mruby-9c311ddc938ad2cc88e4119374e47cd496e15a94.zip | |
refactor mrb_bob_missing to share raising NoMethodError code; fix #2878
Note: arguments of mrb_no_method_error() has changed. You need to replace
3rd and 4th argument (say n, argv) to mrb_ary_new_from_values(mrb, n, argv).
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/error.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby/error.h b/include/mruby/error.h index 52f6772bd..282be0a24 100644 --- a/include/mruby/error.h +++ b/include/mruby/error.h @@ -24,7 +24,7 @@ MRB_API mrb_value mrb_exc_new_str(mrb_state *mrb, struct RClass* c, mrb_value st MRB_API mrb_value mrb_make_exception(mrb_state *mrb, int argc, const mrb_value *argv); MRB_API mrb_value mrb_exc_backtrace(mrb_state *mrb, mrb_value exc); MRB_API mrb_value mrb_get_backtrace(mrb_state *mrb); -MRB_API mrb_noreturn void mrb_no_method_error(mrb_state *mrb, mrb_sym id, mrb_int argc, const mrb_value *argv, const char *fmt, ...); +MRB_API mrb_noreturn void mrb_no_method_error(mrb_state *mrb, mrb_sym id, mrb_value args, const char *fmt, ...); /* declaration for fail method */ MRB_API mrb_value mrb_f_raise(mrb_state*, mrb_value); |
