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