diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-11-18 08:15:58 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-11-18 08:15:58 +0900 |
| commit | bd87799673de665eefe62f362d6310f51ffcc17c (patch) | |
| tree | 58c32885c1cf0dbc40779d79faff1fa0d416fd87 /mrbgems/mruby-proc-ext | |
| parent | 74310f41d74ad1d6622d59278da20627f069f074 (diff) | |
| parent | 04baaab31169efbea14b4b1e70f91cbfa0757e64 (diff) | |
| download | mruby-bd87799673de665eefe62f362d6310f51ffcc17c.tar.gz mruby-bd87799673de665eefe62f362d6310f51ffcc17c.zip | |
Merge pull request #4825 from shuujii/fix-argument-specs-to-Kernel
Fix argument specs to `Kernel`
Diffstat (limited to 'mrbgems/mruby-proc-ext')
| -rw-r--r-- | mrbgems/mruby-proc-ext/src/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-proc-ext/src/proc.c b/mrbgems/mruby-proc-ext/src/proc.c index a7faeebea..424906c00 100644 --- a/mrbgems/mruby-proc-ext/src/proc.c +++ b/mrbgems/mruby-proc-ext/src/proc.c @@ -175,8 +175,8 @@ mrb_mruby_proc_ext_gem_init(mrb_state* mrb) mrb_define_method(mrb, p, "inspect", mrb_proc_inspect, MRB_ARGS_NONE()); mrb_define_method(mrb, p, "parameters", mrb_proc_parameters, MRB_ARGS_NONE()); - mrb_define_class_method(mrb, mrb->kernel_module, "proc", mrb_kernel_proc, MRB_ARGS_NONE()); - mrb_define_method(mrb, mrb->kernel_module, "proc", mrb_kernel_proc, MRB_ARGS_NONE()); + mrb_define_class_method(mrb, mrb->kernel_module, "proc", mrb_kernel_proc, MRB_ARGS_NONE()|MRB_ARGS_BLOCK()); + mrb_define_method(mrb, mrb->kernel_module, "proc", mrb_kernel_proc, MRB_ARGS_NONE()|MRB_ARGS_BLOCK()); } void |
