summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authortake_cheeze <[email protected]>2014-04-01 01:53:28 +0900
committertake_cheeze <[email protected]>2014-04-01 01:53:28 +0900
commit755ded2ef087bc29c8223919a3e8ab95a0692de4 (patch)
treea165a984dea67e3c0bf752707c7e89e1052f7a3c /include
parentb38eb72d829edc94c6a9f5d34bb6e5c102039cb5 (diff)
downloadmruby-755ded2ef087bc29c8223919a3e8ab95a0692de4.tar.gz
mruby-755ded2ef087bc29c8223919a3e8ab95a0692de4.zip
Use MRB_ENV_STACK_SHARED_P to check `cioff` field of REnv.
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 e72e8f7e4..870e9f748 100644
--- a/include/mruby/proc.h
+++ b/include/mruby/proc.h
@@ -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;