diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-04-05 13:58:20 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-04-05 13:58:20 +0900 |
| commit | d26f03b44640dbcd1e97894a9840549127f1ac0a (patch) | |
| tree | a2a7654559c82f068f531076f62d940b5c3214cd /include | |
| parent | dd1c100b840dfc024040f677fc536141b06853de (diff) | |
| parent | ed41bbb199fb614bb68423d19d26c09c5027319a (diff) | |
| download | mruby-d26f03b44640dbcd1e97894a9840549127f1ac0a.tar.gz mruby-d26f03b44640dbcd1e97894a9840549127f1ac0a.zip | |
Merge pull request #4358 from shuujii/use-mrb_proc_arity-instead-of-Proc-arity-call-in-Method-arity
Use `mrb_proc_arity` instead of `Proc#arity` call in `Method#arity`
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/proc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mruby/proc.h b/include/mruby/proc.h index 021f9c117..a8b16db1d 100644 --- a/include/mruby/proc.h +++ b/include/mruby/proc.h @@ -86,6 +86,7 @@ struct RProc *mrb_closure_new(mrb_state*, mrb_irep*); MRB_API struct RProc *mrb_proc_new_cfunc(mrb_state*, mrb_func_t); MRB_API struct RProc *mrb_closure_new_cfunc(mrb_state *mrb, mrb_func_t func, int nlocals); void mrb_proc_copy(struct RProc *a, struct RProc *b); +mrb_int mrb_proc_arity(const struct RProc *p); /* implementation of #send method */ mrb_value mrb_f_send(mrb_state *mrb, mrb_value self); |
