From 28defca799598e8ea8960fbbada49d94b5e6ac27 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sun, 25 Feb 2007 16:29:26 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@11884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval_jump.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'eval_jump.h') diff --git a/eval_jump.h b/eval_jump.h index 8bc47a0cc..a48a5357f 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 { -- cgit