diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-27 08:06:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-27 08:06:58 +0000 |
commit | 899fc0333f6ba2364c0b223843181fc91f3e5dd7 (patch) | |
tree | 73058bee79383d2ec9906c516e0717336ff927e8 /error.c | |
parent | 9ab24004fced310db13cd3cb7eb7bac46900db0c (diff) | |
download | ruby-899fc0333f6ba2364c0b223843181fc91f3e5dd7.tar.gz |
id.def: internal IDs
* defs/id.def: move internal IDs for frozen-string-literal-debug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -2227,10 +2227,9 @@ void rb_error_frozen_object(VALUE frozen_obj) { VALUE path, line; - ID created_path, created_line; + const ID created_path = id_debug_created_path; + const ID created_line = id_debug_created_line; - CONST_ID(created_path, "__object_created_path__"); - CONST_ID(created_line, "__object_created_line__"); if (!NIL_P(path = rb_attr_get(frozen_obj, created_path)) && !NIL_P(line = rb_attr_get(frozen_obj, created_line))) { rb_raise(rb_eRuntimeError, "can't modify frozen %"PRIsVALUE", created at %"PRIsVALUE":%"PRIsVALUE, |