diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-24 05:18:47 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-24 05:18:47 +0000 |
commit | e02b469de182c1d87ead38fa82630eaaee75c379 (patch) | |
tree | 425980c3ebfb78d38067b3b01f2df97a9dc0853d /variable.c | |
parent | 169300a4f8f6c704d9ef1dbed0b73f2dd7efdb68 (diff) | |
download | ruby-e02b469de182c1d87ead38fa82630eaaee75c379.tar.gz |
* eval.c (thgroup_add): no warning for terminated threads.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/variable.c b/variable.c index 77c1c37240..76c0939c46 100644 --- a/variable.c +++ b/variable.c @@ -1548,6 +1548,9 @@ rb_define_const(klass, name, val) { ID id = rb_intern(name); + if (!rb_is_const_id(id)) { + rb_warn("rb_define_const: invalide name `%s' for constant", name); + } if (klass == rb_cObject) { rb_secure(4); } |