diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-30 18:27:20 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-30 18:27:20 +0000 |
commit | 061cce6d6f98021d5c5d1b7912d4fcf1955f5240 (patch) | |
tree | 5224935ad3a778010404a32b47dbca7912a9f30e /vm.h | |
parent | 6a69ad4df1719516a2da8b95872d3a44deae026c (diff) | |
download | ruby-061cce6d6f98021d5c5d1b7912d4fcf1955f5240.tar.gz |
* insnhelper.h, vm.h: some refactoring.
remove useless comments, etc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.h')
-rw-r--r-- | vm.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -220,6 +220,12 @@ 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) |