summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-24 08:05:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-24 08:05:55 +0000
commit58d3597e743967bb4c486b108e7dcd0db5c3efca (patch)
tree7b4d73bd0d9206ffdd2c658d926ddb760d285b3c /error.c
parent5383964f98659ea0cd371d77b9ed97f46702e591 (diff)
* include/ruby/intern.h (rb_check_frozen): optimize.
[ruby-core:32878] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/error.c b/error.c
index 3863fb798c..b355cf890c 100644
--- a/error.c
+++ b/error.c
@@ -1589,10 +1589,11 @@ rb_error_frozen(const char *what)
rb_raise(rb_eRuntimeError, "can't modify frozen %s", what);
}
+#undef rb_check_frozen
void
rb_check_frozen(VALUE obj)
{
- if (OBJ_FROZEN(obj)) rb_error_frozen(rb_obj_classname(obj));
+ rb_check_frozen_internal(obj);
}
void