diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-12-14 13:35:18 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-12-14 13:35:18 +0900 |
| commit | f5e10c5a79a17939af763b1dcf5232ce47e24a34 (patch) | |
| tree | 66afaeb5cd6719abb13dae580a34fb39f9a5b9bd /include | |
| parent | 8a74b2a25d5a0b66326d9642567fef894ea90d10 (diff) | |
| download | mruby-f5e10c5a79a17939af763b1dcf5232ce47e24a34.tar.gz mruby-f5e10c5a79a17939af763b1dcf5232ce47e24a34.zip | |
proc.c: add `mrb_state` argument to `mrb_proc_copy()`.
The function may invoke the garbage collection and it requires
`mrb_state` to run.
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/proc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby/proc.h b/include/mruby/proc.h index 1ba485783..a6aa4ed7f 100644 --- a/include/mruby/proc.h +++ b/include/mruby/proc.h @@ -92,7 +92,7 @@ struct RProc *mrb_proc_new(mrb_state*, const mrb_irep*); struct RProc *mrb_closure_new(mrb_state*, const 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); +void mrb_proc_copy(mrb_state *mrb, struct RProc *a, struct RProc *b); mrb_int mrb_proc_arity(const struct RProc *p); /* following functions are defined in mruby-proc-ext so please include it when using */ |
