summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-04-01 11:24:32 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-04-01 11:24:32 +0900
commit00f3484ff7edcfd9e6f790fbc8e84595b160d3e8 (patch)
treea165a984dea67e3c0bf752707c7e89e1052f7a3c /include
parentd7c29322b8fea584cb8940b9d216b9e11bdf94f9 (diff)
parent755ded2ef087bc29c8223919a3e8ab95a0692de4 (diff)
downloadmruby-00f3484ff7edcfd9e6f790fbc8e84595b160d3e8.tar.gz
mruby-00f3484ff7edcfd9e6f790fbc8e84595b160d3e8.zip
Merge pull request #1986 from take-cheeze/proc_macro
REnv macros.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/proc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mruby/proc.h b/include/mruby/proc.h
index bb924447e..870e9f748 100644
--- a/include/mruby/proc.h
+++ b/include/mruby/proc.h
@@ -20,6 +20,10 @@ struct REnv {
int cioff;
};
+#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;
union {