From 8c5ca318cbe57269f144a4d0822c5283c1fd4e1a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 22 Feb 2020 00:32:43 +0900 Subject: `Proc` made by `Symbol#to_proc` should be a lambda [Bug #16260] With refinements, too. --- internal/proc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/proc.h') diff --git a/internal/proc.h b/internal/proc.h index 7f2bec8850..864392906b 100644 --- a/internal/proc.h +++ b/internal/proc.h @@ -19,11 +19,11 @@ VALUE rb_proc_location(VALUE self); st_index_t rb_hash_proc(st_index_t hash, VALUE proc); int rb_block_arity(void); int rb_block_min_max_arity(int *max); -VALUE rb_func_lambda_new(rb_block_call_func_t func, VALUE val, int min_argc, int max_argc); VALUE rb_block_to_s(VALUE self, const struct rb_block *block, const char *additional_info); MJIT_SYMBOL_EXPORT_BEGIN VALUE rb_func_proc_new(rb_block_call_func_t func, VALUE val); +VALUE rb_func_lambda_new(rb_block_call_func_t func, VALUE val, int min_argc, int max_argc); VALUE rb_iseq_location(const struct rb_iseq_struct *iseq); VALUE rb_sym_to_proc(VALUE sym); MJIT_SYMBOL_EXPORT_END -- cgit v1.2.1