mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
check ec
instead of th
.
* error.c (rb_bug): check `ec` instead of `th`. * error.c (rb_bug_context): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4cd402ae1f
commit
abfdaf20a6
1 changed files with 2 additions and 2 deletions
4
error.c
4
error.c
|
@ -532,7 +532,7 @@ rb_bug(const char *fmt, ...)
|
||||||
const char *file = NULL;
|
const char *file = NULL;
|
||||||
int line = 0;
|
int line = 0;
|
||||||
|
|
||||||
if (GET_THREAD()) {
|
if (GET_EC()) {
|
||||||
file = rb_source_loc(&line);
|
file = rb_source_loc(&line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -547,7 +547,7 @@ rb_bug_context(const void *ctx, const char *fmt, ...)
|
||||||
const char *file = NULL;
|
const char *file = NULL;
|
||||||
int line = 0;
|
int line = 0;
|
||||||
|
|
||||||
if (GET_THREAD()) {
|
if (GET_EC()) {
|
||||||
file = rb_source_loc(&line);
|
file = rb_source_loc(&line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue