mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Revert "proc.h: define visibility flags for RProc"
This reverts commit 7948373c7d2a019b0eed6ca6dfcb4d6e503b75d8.
This commit is contained in:
@@ -69,11 +69,6 @@ struct RProc {
|
||||
#define MRB_ASPEC_KDICT(a) (((a) >> 1) & 0x1)
|
||||
#define MRB_ASPEC_BLOCK(a) ((a) & 1)
|
||||
|
||||
#define MRB_PROC_PRIVATE_FL 1
|
||||
#define MRB_PROC_PROTECTED_FL 2
|
||||
#define MRB_PROC_VISIBILITY_MASK 3
|
||||
#define MRB_PROC_VISIBILITY(p) ((p)->flags & MRB_PROC_VISIBILITY_MASK)
|
||||
#define MRB_PROC_SET_VISIBILITY(p,v) ((p)->flags = (((p)->flags & ~MRB_PROC_VISIBILITY_MASK) | ((v) & MRB_PROC_VISIBILITY_MASK)))
|
||||
#define MRB_PROC_CFUNC_FL 128
|
||||
#define MRB_PROC_CFUNC_P(p) (((p)->flags & MRB_PROC_CFUNC_FL) != 0)
|
||||
#define MRB_PROC_CFUNC(p) (p)->body.func
|
||||
|
||||
Reference in New Issue
Block a user