1
0
Fork 0
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:
ko1 2017-10-28 11:20:17 +00:00
parent 4cd402ae1f
commit abfdaf20a6

View file

@ -532,7 +532,7 @@ rb_bug(const char *fmt, ...)
const char *file = NULL;
int line = 0;
if (GET_THREAD()) {
if (GET_EC()) {
file = rb_source_loc(&line);
}
@ -547,7 +547,7 @@ rb_bug_context(const void *ctx, const char *fmt, ...)
const char *file = NULL;
int line = 0;
if (GET_THREAD()) {
if (GET_EC()) {
file = rb_source_loc(&line);
}