summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-22 13:43:51 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-22 13:43:51 +0000
commit9606249e46b01dc3449825347c2ba01d8c3c020a (patch)
tree2821e8d1db03856772078071596e7611d8e752ae
parent2342d9078b305e97f03b7dce39e397d3fd1372ae (diff)
* eval.c (rb_call0): check event_hooks instead of trace_func.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--eval.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5512d07cd0..9e2f604a82 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Mar 22 22:40:18 2005 Shugo Maeda <shugo@ruby-lang.org>
+
+ * eval.c (rb_call0): check event_hooks instead of trace_func.
+
Tue Mar 22 17:30:44 2005 Shugo Maeda <shugo@ruby-lang.org>
* eval.c (rb_add_event_hook): new function to add a hook function for
diff --git a/eval.c b/eval.c
index 3541a28472..e8c4a9d963 100644
--- a/eval.c
+++ b/eval.c
@@ -5731,7 +5731,7 @@ rb_call0(klass, recv, id, oid, argc, argv, body, nosuper)
}
}
- if (trace_func) {
+ if (event_hooks) {
EXEC_EVENT_HOOK(RUBY_EVENT_CALL, b2, recv, id, klass);
hook_return = 1;
}