summaryrefslogtreecommitdiff
path: root/eval_error.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-24 06:36:44 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-24 06:36:44 +0000
commitd5893b91faa7dc77ca6c9728d1054dabd757aead (patch)
tree4997454073bafbda2b0c05559f5d4941603c7b24 /eval_error.c
parent3dcebce5235276e99a75c6b0c71f4f3c4f4e225c (diff)
* vm_method.c (rb_method_defined_by): removed.
nobu pointed out that rb_method_basic_definition_p() is enough for last commit. * error.c, eval_error.c: change for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_error.c')
-rw-r--r--eval_error.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/eval_error.c b/eval_error.c
index a2e95a759f..dc9e99d4f5 100644
--- a/eval_error.c
+++ b/eval_error.c
@@ -55,13 +55,15 @@ rb_get_backtrace(VALUE info)
return get_backtrace(info);
}
+VALUE rb_exc_set_backtrace(VALUE exc, VALUE bt);
+
static void
set_backtrace(VALUE info, VALUE bt)
{
ID set_backtrace = rb_intern("set_backtrace");
if (rb_backtrace_p(bt)) {
- if (rb_method_defined_by(info, set_backtrace, rb_exc_set_backtrace)) {
+ if (rb_method_basic_definition_p(CLASS_OF(info), set_backtrace)) {
rb_exc_set_backtrace(info, bt);
return;
}