From: Mark Moseley Date: 2009-09-29T17:03:35+09:00 Subject: [ruby-core:25834] Re: event hook in 1.9? Ryan Davis wrote: >> /** >> @c setting >> @e trace >> @j trace ��������������� >> */ >> DEFINE_INSN >> trace >> (rb_num_t nf) >> () >> () >> { >> rb_event_flag_t flag = (rb_event_flag_t)nf; >> >> EXEC_EVENT_HOOK(th, flag, GET_SELF(), 0, 0 /* TODO: id, klass */); >> } > > Am I missing something? Does this TODO imply that the event hook > mechanism isn't supposed to work yet? > > > > The hook works fine, it just doesn't pass in the id and klass variables. You can get them pretty easily, though (ruby_current_thread->cfp->iseq->defined_method_id and ruby_current_thread->cfp->iseq->klass). Mark