summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-09 09:25:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-09 09:25:32 +0000
commita37463ef14409c81422b3c3d6c35a0dbd21f51b7 (patch)
tree294dcb47e83e5480b1fa992aba8a4b4025c8a626 /eval.c
parent32a51c5c95dde9e78161cccc9e75303a5523540b (diff)
downloadruby-a37463ef14409c81422b3c3d6c35a0dbd21f51b7.tar.gz
ruby-a37463ef14409c81422b3c3d6c35a0dbd21f51b7.tar.xz
ruby-a37463ef14409c81422b3c3d6c35a0dbd21f51b7.zip
* include/ruby/ruby.h (CONST_ID): constant ID cache for non-gcc.
* *.c: no cache in init functions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 7cd2a2240..167dea77f 100644
--- a/eval.c
+++ b/eval.c
@@ -507,7 +507,7 @@ rb_make_exception(int argc, VALUE *argv)
case 3:
n = 1;
exception_call:
- exception = rb_intern("exception");
+ CONST_ID(exception, "exception");
if (!rb_respond_to(argv[0], exception)) {
rb_raise(rb_eTypeError, "exception class/object expected");
}