ruby-changes:48401
From: ko1 <ko1@a...>
Date: Sat, 28 Oct 2017 20:20:21 +0900 (JST)
Subject: [ruby-changes:48401] ko1:r60515 (trunk): check `ec` instead of `th`.
ko1 2017-10-28 20:20:17 +0900 (Sat, 28 Oct 2017) New Revision: 60515 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60515 Log: check `ec` instead of `th`. * error.c (rb_bug): check `ec` instead of `th`. * error.c (rb_bug_context): ditto. Modified files: trunk/error.c Index: error.c =================================================================== --- error.c (revision 60514) +++ error.c (revision 60515) @@ -532,7 +532,7 @@ rb_bug(const char *fmt, ...) https://github.com/ruby/ruby/blob/trunk/error.c#L532 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 ch https://github.com/ruby/ruby/blob/trunk/error.c#L547 const char *file = NULL; int line = 0; - if (GET_THREAD()) { + if (GET_EC()) { file = rb_source_loc(&line); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/