From fd2ef1a9bfa489842472d183ea10b6fd9838c460 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Tue, 3 Sep 2019 11:50:46 -0700 Subject: Add VM_NO_KEYWORDS I think this is easier to read than using literal 0 with comments in every case where it is used. --- proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proc.c') diff --git a/proc.c b/proc.c index 87ae422d5f..db2f62e090 100644 --- a/proc.c +++ b/proc.c @@ -942,7 +942,7 @@ rb_proc_call(VALUE self, VALUE args) GetProcPtr(self, proc); vret = rb_vm_invoke_proc(GET_EC(), proc, check_argc(RARRAY_LEN(args)), RARRAY_CONST_PTR(args), - 0 /* kw_splat */, VM_BLOCK_HANDLER_NONE); + VM_NO_KEYWORDS, VM_BLOCK_HANDLER_NONE); RB_GC_GUARD(self); RB_GC_GUARD(args); return vret; @@ -961,7 +961,7 @@ rb_proc_call_with_block(VALUE self, int argc, const VALUE *argv, VALUE passed_pr VALUE vret; rb_proc_t *proc; GetProcPtr(self, proc); - vret = rb_vm_invoke_proc(ec, proc, argc, argv, 0 /* kw_splat */, proc_to_block_handler(passed_procval)); + vret = rb_vm_invoke_proc(ec, proc, argc, argv, VM_NO_KEYWORDS, proc_to_block_handler(passed_procval)); RB_GC_GUARD(self); return vret; } -- cgit v1.2.3