diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-25 16:29:26 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-25 16:29:26 +0000 |
commit | 9987d53e519cf84fe47ffbbd4f48be0bc40938c7 (patch) | |
tree | 1cbd036967f588026bf6038c39898fa20a531e4b /eval_jump.h | |
parent | e98f7e1eaa18c33d211e6a0cf245eaf4b175c3c7 (diff) | |
download | ruby-9987d53e519cf84fe47ffbbd4f48be0bc40938c7.tar.gz |
* yarvcore.h: add rb_thread_t#top_wrapper, top_self.
* eval_load.c (rb_load): support eval in wrapper module
(load(file, true)).
* eval.c: ditto.
* eval_jump.h: ditto.
* iseq.c: ditto.
* vm.c: ditto.
* yarvcore.c: ditto.
* insns.def: add a empty line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_jump.h')
-rw-r--r-- | eval_jump.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eval_jump.h b/eval_jump.h index 8bc47a0cc0..a48a5357fd 100644 --- a/eval_jump.h +++ b/eval_jump.h @@ -318,8 +318,9 @@ rb_set_end_proc(void (*func)(VALUE), VALUE data) { struct end_proc_data *link = ALLOC(struct end_proc_data); struct end_proc_data **list; + rb_thread_t *th = GET_THREAD(); - if (ruby_wrapper) { + if (th->top_wrapper) { list = &ephemeral_end_procs; } else { |