summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mruby/proc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mruby/proc.h b/include/mruby/proc.h
index fe5a1d2f6..5441cf767 100644
--- a/include/mruby/proc.h
+++ b/include/mruby/proc.h
@@ -20,7 +20,8 @@ struct REnv {
ptrdiff_t cioff;
};
-#define MRB_ENV_STACK_LEN(e) ((e)->flags)
+#define MRB_SET_ENV_STACK_LEN(e,len) (e)->flags = (unsigned int)(len)
+#define MRB_ENV_STACK_LEN(e) ((mrb_int)(e)->flags)
#define MRB_ENV_UNSHARE_STACK(e) ((e)->cioff = -1)
#define MRB_ENV_STACK_SHARED_P(e) ((e)->cioff >= 0)