diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-28 11:20:17 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-28 11:20:17 +0000 |
commit | abfdaf20a6cada238c6bfd352c5375ed56b18bdc (patch) | |
tree | fa139cffe0954d669ccfca51ba67a8d101fba79d /error.c | |
parent | 4cd402ae1f5bf127ed16c7f5c84b5193e595cf35 (diff) |
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
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |