summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authortake_cheeze <[email protected]>2014-04-01 01:13:39 +0900
committertake_cheeze <[email protected]>2014-04-01 01:13:39 +0900
commit80534b6d14f1392ab1c199f0906880d61f55ae84 (patch)
tree45b37a1013bf60faa4190525fb791725185ce480 /include
parentd7c29322b8fea584cb8940b9d216b9e11bdf94f9 (diff)
downloadmruby-80534b6d14f1392ab1c199f0906880d61f55ae84.tar.gz
mruby-80534b6d14f1392ab1c199f0906880d61f55ae84.zip
Use MRB_ENV_STACK_LEN instead of accessing `flags` directly to get REnv's stack length.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/proc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mruby/proc.h b/include/mruby/proc.h
index bb924447e..6d2cf516a 100644
--- a/include/mruby/proc.h
+++ b/include/mruby/proc.h
@@ -20,6 +20,8 @@ struct REnv {
int cioff;
};
+#define MRB_ENV_STACK_LEN(e) ((e)->flags)
+
struct RProc {
MRB_OBJECT_HEADER;
union {