summaryrefslogtreecommitdiff
path: root/vm.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-26 10:39:49 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-26 10:39:49 +0000
commit67aa07f44d40e5e67081c6e8fef5af49caee1525 (patch)
tree3137398e82d7e8c97285735f23cb4f7d8e96df8c /vm.h
parent94331261e94b15fe06df26ec78668480c17537f5 (diff)
* eval.c (eval): fix to check stack overflow.
* eval_intern.h, vm.h: move CHECK_STACK_OVERFLOW() macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.h')
-rw-r--r--vm.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/vm.h b/vm.h
index 02629e8814..fa131d96e7 100644
--- a/vm.h
+++ b/vm.h
@@ -214,12 +214,6 @@ default: \
((rb_control_frame_t *)(th->stack + th->stack_size) - (rb_control_frame_t *)(cfp))
#define VM_SP_CNT(th, sp) ((sp) - (th)->stack)
-#define CHECK_STACK_OVERFLOW(cfp, margin) do \
- if (((VALUE *)(cfp)->sp) + (margin) >= ((VALUE *)cfp)) { \
- rb_exc_raise(sysstack_error); \
- } \
-while (0)
-
/*
env{
env[0] // special (block or prev env)