From: Roger Pack Date: 2012-11-09T02:38:20+09:00 Subject: [ruby-core:49119] ID_ALLOCATOR ? --bcaec550b4daf4525204cdff4ca6 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hello. Ruby 2.0 is all about "non breaking backward compatibility" right? . Anyway, I used to use this code in the ruby-prof gem to see a method is the allocator: if (method_id =3D=3D ID_ALLOCATOR) result =3D rb_str_new2("allocate"); This fails to compile with 2.0 however: rp_method.c:101: error: =91ID_ALLOCATOR=92 undeclared (first use in this fu= nction) Any help/work arounds available? Thanks. -r --bcaec550b4daf4525204cdff4ca6 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hello.

Ruby 2.0 is all about "non breaking backward compa= tibility" right? <wink wink>.
Anyway, I used to use th= is code in the ruby-prof gem to see a method is the allocator:

if (method_id =3D=3D ID_ALLOCATOR)=
=A0=A0=A0=A0=A0=A0=A0=A0result =3D= rb_str_new2("allocate");


This fails to compile with 2.0 however:
=
rp_method.c:101: error: =91ID_ALLOC=
ATOR=92 undeclared (first use in this function)
Any help/work arounds available?
Than=
ks.
-r
--bcaec550b4daf4525204cdff4ca6--