use GET_EC() directly
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
da9869625a
commit
4049ffb58e
3
iseq.c
3
iseq.c
@ -631,7 +631,6 @@ rb_iseq_load(VALUE data, VALUE parent, VALUE opt)
|
||||
rb_iseq_t *
|
||||
rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE realpath, VALUE line, const struct rb_block *base_block, VALUE opt)
|
||||
{
|
||||
rb_thread_t *th = GET_THREAD();
|
||||
rb_iseq_t *iseq = NULL;
|
||||
const rb_iseq_t *const parent = base_block ? vm_block_iseq(base_block) : NULL;
|
||||
rb_compile_option_t option;
|
||||
@ -664,7 +663,7 @@ rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE realpath, VALUE line, c
|
||||
|
||||
if (!ast->root) {
|
||||
rb_ast_dispose(ast);
|
||||
rb_exc_raise(th->ec->errinfo);
|
||||
rb_exc_raise(GET_EC()->errinfo);
|
||||
}
|
||||
else {
|
||||
INITIALIZED VALUE label = parent ?
|
||||
|
Loading…
x
Reference in New Issue
Block a user