diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-24 03:08:13 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-24 03:08:13 +0000 |
commit | e4aa7208e5b8b5aff35af4b262291ab2c39e66d9 (patch) | |
tree | cb39b879da34d69341ae5d52476190bf9abd309a /eval.c | |
parent | 7d200b94f946f0caffa3ea3a72783855e421df32 (diff) |
* cont.c: check across trap violation.
* eval.c, yarvcore.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1162,11 +1162,16 @@ rb_protect(VALUE (*proc) (VALUE), VALUE data, int *state) int status; rb_thread_t *th = GET_THREAD(); rb_control_frame_t *cfp = th->cfp; + struct rb_vm_trap_tag trap_tag = { + th->trap_tag, + }; PUSH_TAG(); + th->trap_tag = &trap_tag; if ((status = EXEC_TAG()) == 0) { result = (*proc) (data); } + th->trap_tag = trap_tag.prev; POP_TAG(); if (state) { |