proc.c (mrb_proc_eql): define == and eql? for Proc class

This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-03-27 19:14:21 +09:00
parent ddb2240b5e
commit fbb3a2426f
2 changed files with 34 additions and 0 deletions
+1
View File
@@ -118,6 +118,7 @@ void mrb_proc_merge_lvar(mrb_state *mrb, mrb_irep *irep, struct REnv *env, int n
mrb_value mrb_proc_local_variables(mrb_state *mrb, const struct RProc *proc);
const struct RProc *mrb_proc_get_caller(mrb_state *mrb, struct REnv **env);
mrb_value mrb_proc_get_self(mrb_state *mrb, struct RProc *p, struct RClass **target_class_p);
mrb_bool mrb_proc_eql(mrb_state *mrb, mrb_value self, mrb_value other);
#endif
/* range */