mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
eval_error.c: reuse threadptr
* eval_error.c (error_print, error_handle): reuse same threadptr by passing as an argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f56a2c7293
commit
53d5f865e6
2 changed files with 6 additions and 7 deletions
2
eval.c
2
eval.c
|
@ -76,7 +76,7 @@ ruby_init(void)
|
|||
int state = ruby_setup();
|
||||
if (state) {
|
||||
if (RTEST(ruby_debug))
|
||||
error_print();
|
||||
error_print(GET_THREAD());
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue