summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authortake_cheeze <[email protected]>2014-04-01 01:35:40 +0900
committertake_cheeze <[email protected]>2014-04-01 01:35:40 +0900
commitb38eb72d829edc94c6a9f5d34bb6e5c102039cb5 (patch)
treef58467de93e8ebe902aed1374caa831790f976eb /include
parent80534b6d14f1392ab1c199f0906880d61f55ae84 (diff)
downloadmruby-b38eb72d829edc94c6a9f5d34bb6e5c102039cb5.tar.gz
mruby-b38eb72d829edc94c6a9f5d34bb6e5c102039cb5.zip
Add macro MRB_ENV_UNSHARE_STACK instead of assigning -1 directly.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/proc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mruby/proc.h b/include/mruby/proc.h
index 6d2cf516a..e72e8f7e4 100644
--- a/include/mruby/proc.h
+++ b/include/mruby/proc.h
@@ -21,6 +21,7 @@ struct REnv {
};
#define MRB_ENV_STACK_LEN(e) ((e)->flags)
+#define MRB_ENV_UNSHARE_STACK(e) ((e)->cioff = -1)
struct RProc {
MRB_OBJECT_HEADER;