Add checks for break from proc-closure; fix #3640

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-06-03 12:44:29 +09:00
parent ab85d3c814
commit c041206ad1
2 changed files with 40 additions and 3 deletions
+2
View File
@@ -55,6 +55,8 @@ struct RProc {
#define MRB_PROC_CFUNC_P(p) (((p)->flags & MRB_PROC_CFUNC) != 0)
#define MRB_PROC_STRICT 256
#define MRB_PROC_STRICT_P(p) (((p)->flags & MRB_PROC_STRICT) != 0)
#define MRB_PROC_ORPHAN 512
#define MRB_PROC_ORPHAN_P(p) (((p)->flags & MRB_PROC_ORPHAN) != 0)
#define mrb_proc_ptr(v) ((struct RProc*)(mrb_ptr(v)))