diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-19 07:57:56 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-19 07:57:56 +0000 |
commit | 0fc7f4bb304ad07e8172f868d885112a1dcceb0f (patch) | |
tree | cee434a57852a17cfc00365434926d8e4c448586 /eval.c | |
parent | e99989bf4fffa966b6333f43d47ce54e2384122c (diff) | |
download | ruby-0fc7f4bb304ad07e8172f868d885112a1dcceb0f.tar.gz |
* eval.c, vm_eval.c: use TH_PUSH_TAG() instead of PUSH_TAG().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -699,8 +699,8 @@ rb_rescue2(VALUE (* b_proc) (ANYARGS), VALUE data1, volatile VALUE e_info = th->errinfo; va_list args; - PUSH_TAG(); - if ((state = EXEC_TAG()) == 0) { + TH_PUSH_TAG(th); + if ((state = TH_EXEC_TAG()) == 0) { retry_entry: result = (*b_proc) (data1); } @@ -743,7 +743,7 @@ rb_rescue2(VALUE (* b_proc) (ANYARGS), VALUE data1, } } } - POP_TAG(); + TH_POP_TAG(); if (state) JUMP_TAG(state); @@ -770,15 +770,15 @@ rb_protect(VALUE (* proc) (VALUE), VALUE data, int * state) protect_tag.prev = th->protect_tag; - PUSH_TAG(); + TH_PUSH_TAG(th); th->protect_tag = &protect_tag; MEMCPY(&org_jmpbuf, &(th)->root_jmpbuf, rb_jmpbuf_t, 1); - if ((status = EXEC_TAG()) == 0) { + if ((status = TH_EXEC_TAG()) == 0) { SAVE_ROOT_JMPBUF(th, result = (*proc) (data)); } MEMCPY(&(th)->root_jmpbuf, &org_jmpbuf, rb_jmpbuf_t, 1); th->protect_tag = protect_tag.prev; - POP_TAG(); + TH_POP_TAG(); if (state) { *state = status; |