[前][次][番号順一覧][スレッド一覧]

ruby-changes:38692

From: ko1 <ko1@a...>
Date: Fri, 5 Jun 2015 01:15:25 +0900 (JST)
Subject: [ruby-changes:38692] ko1:r50773 (trunk): * vm_insnhelper.c (vm_defined): show additional messages on rb_bug().

ko1	2015-06-05 01:15:13 +0900 (Fri, 05 Jun 2015)

  New Revision: 50773

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50773

  Log:
    * vm_insnhelper.c (vm_defined): show additional messages on rb_bug().

  Modified files:
    trunk/ChangeLog
    trunk/vm_insnhelper.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50772)
+++ ChangeLog	(revision 50773)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jun  5 01:14:02 2015  Koichi Sasada  <ko1@a...>
+
+	* vm_insnhelper.c (vm_defined): show additional messages on rb_bug().
+
 Fri Jun  5 01:06:02 2015  Koichi Sasada  <ko1@a...>
 
 	* vm_method.c (rb_add_method_iseq): use intermediate struct to
Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 50772)
+++ vm_insnhelper.c	(revision 50773)
@@ -2479,7 +2479,7 @@ vm_defined(rb_thread_t *th, rb_control_f https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L2479
 		expr_type = DEFINED_METHOD;
 		break;
 	      default:
-		rb_bug("unreachable");
+		rb_bug("vm_defined: unreachable: %u", (unsigned int)def->flags.visi);
 	    }
 	}
 	else {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]