Use MRB_ENV_STACK_SHARED_P to check cioff field of REnv.

This commit is contained in:
take_cheeze
2014-04-01 01:53:28 +09:00
parent b38eb72d82
commit 755ded2ef0
3 changed files with 7 additions and 6 deletions
+1
View File
@@ -22,6 +22,7 @@ struct REnv {
#define MRB_ENV_STACK_LEN(e) ((e)->flags)
#define MRB_ENV_UNSHARE_STACK(e) ((e)->cioff = -1)
#define MRB_ENV_STACK_SHARED_P(e) ((e)->cioff >= 0)
struct RProc {
MRB_OBJECT_HEADER;