From bc2a1f2a98b04f040ea485cedd3283f2f3906e4c Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 3 Sep 2011 15:11:53 +0000 Subject: * variable.c (rb_const_set): show the previous definition location. [EXPERIMENTAL] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- constant.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'constant.h') diff --git a/constant.h b/constant.h index 8232910737..9354241961 100644 --- a/constant.h +++ b/constant.h @@ -19,6 +19,8 @@ typedef enum { typedef struct rb_const_entry_struct { rb_const_flag_t flag; VALUE value; /* should be mark */ + VALUE file; + int line; } rb_const_entry_t; VALUE rb_mod_private_constant(int argc, VALUE *argv, VALUE obj); -- cgit v1.2.3