> (2) My recommendation > > #ifdef ID_ALLOCATOR > if (mid == ID_ALLOCATOR) > result = rb_str_new2("allocate"); > else > #endif > if (mid == 0) > result = rb_str_new2("[No method]"); > else > result = rb_String(ID2SYM(mid)); > Good idea. Or should I assume that ID_ALLOCATOR=1 will also apply for 2.0, so I can just assume it works?