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 | 3d9758e562cf85dcddf058f63285001424b39890 (patch) | |
tree | fa139cffe0954d669ccfca51ba67a8d101fba79d | |
parent | bdb3e042671b5f683242bf2913796f24d04cfbb3 (diff) | |
download | ruby-3d9758e562cf85dcddf058f63285001424b39890.tar.gz |
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
-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); } |